Tuesday, May 22, 2007

Adding a 'Friendly' name to an Email Submission

Adding a 'Friendly' name to an Email Submission
Adding a 'Friendly' name to either the 'To' or 'From' properties, in an ASP.Net form submission is fairly painless.

The format is like this:

objMail.To="Friendly Name
Naturally, this applies for the 'To' and the 'From' properties. In addition, you can use dynamic email addressses like this:
objMail.To="Friendly Name <" & sEmail & ">"
And, finally, you can use a dynamic Email address along with a dynamic Friendly name like this:
objMail.To=sFriendlyName & "<" & sEmail & ">"

No comments: