March 2nd, 2004, 03:03 PM
How to Include From Name in CDO.Message Script
I'm trying to make the transition from CDONTS to CDO to send mail from a web page. I used to use:
objCDONTS.From = "Sender Name <firstname.lastname@example.org>"
To make the sender's name show up on the recipient's email message. With CDOSYS this same syntax does not seem to work. I've searched for CDOSYS script examples but cannot find any that show how to include a name in the sender (FROM) field. Does anyone know how to do this? Thanks.
March 2nd, 2004, 03:29 PM
Its the same, except that the sender name needs to be in quotes:
objCDONTS.From = """Sender Name"" <email@example.com>"