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