Setting the message To address |
To set the To header address of an email message assign the To property on the EmailMessage instance. If the To address contains non US-ASCII character data then see Sending an Email message for languages other than English.
Example
[C#] message.To = "jsmith@myserver.com";
[Visual Basic] message.To = "jsmith@myserver.com"
See also
Sending an Email message for languages other than English |