Tcl Requires Chilkat v11.0.0+
Tcl
Set and read the sender name and address
See more Email Object Examples
Set FromName and FromAddress separately when your application stores them in separate fields. Assign a formatted mailbox to From when that is the input you have. These fields describe the visible author.
Chilkat Tcl Downloads
load ./chilkat.dll
# Assumes Chilkat is unlocked. See Global Unlock Sample.
set email [new_CkEmail]
CkEmail_put_FromName $email "Workshop team"
CkEmail_put_FromAddress $email "events@example.com"
puts "Formatted From: [CkEmail_from $email]"
# Parse a formatted mailbox into its two components.
CkEmail_put_From $email "Alex Rivera <alex@example.net>"
puts "Name: [CkEmail_fromName $email]"
puts "Address: [CkEmail_fromAddress $email]"
delete_CkEmail $email