#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    2
    Rep Power
    0

    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 <email@sender.com>"

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    NY
    Posts
    244
    Rep Power
    12
    Its the same, except that the sender name needs to be in quotes:

    objCDONTS.From = """Sender Name"" <email@sender.com>"

IMN logo majestic logo threadwatch logo seochat tools logo