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