AutoIt Requires Chilkat v11.0.0+
AutoIt
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 AutoIt Downloads
; Assumes Chilkat is unlocked. See Global Unlock Sample.
$oEmail = ObjCreate("Chilkat.Email")
$oEmail.FromName = "Workshop team"
$oEmail.FromAddress = "events@example.com"
ConsoleWrite("Formatted From: " & $oEmail.From & @CRLF)
; Parse a formatted mailbox into its two components.
$oEmail.From = "Alex Rivera <alex@example.net>"
ConsoleWrite("Name: " & $oEmail.FromName & @CRLF)
ConsoleWrite("Address: " & $oEmail.FromAddress & @CRLF)