Adding a 'Friendly' name to an Email Submission

Posted by David Wier on 03/22/10 | Tips and Tricks

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 <whoever@wherever.com>

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 & ">"    





















































0 Comments

COMMENTS

Name:
URL:
Comment:

Comments are disabled for this article.