SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot thespian's Avatar
    Join Date
    Sep 2000
    Location
    South Africa
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Recipient Name in CDONTS

    Can someone advise me with CDONTS please.

    When sending an email, is it possible to include the recipients name with the email address?
    Bill Conté [Protected by Psalm 91]
    Web Mechanix
    Growing OLD is Mandatory - Growing UP is Optional!

  2. #2
    SitePoint Enthusiast PeteWJ's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to include someones name along with their e-mail address in the "To" field of the e-mail. Something like this should work fine:[VBS]objMail.To="""" & Request.Form("name") & """ <" & Request.Form("email") & ">"[/VBS]If the passed variables were "someone" for name and "someone@someone.com" for the email, the "To" field would look like this:
    To: "Someone" <someone@someone.com>

    Hope that's what you require!

    Pete

  3. #3
    SitePoint Zealot thespian's Avatar
    Join Date
    Sep 2000
    Location
    South Africa
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx Pete,

    That looks like it should work. I remember seeing it done somewhere before, but for the life of me I can't remember where.

    Anyway, I will give your solution a run this evening and then I'll drop a reply here to let you know how it went.
    Bill Conté [Protected by Psalm 91]
    Web Mechanix
    Growing OLD is Mandatory - Growing UP is Optional!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •