Results 1 to 2 of 2

Thread: Help with ASP contact form

  1. #1
    I have this code to my form. It works great but I want to add a blind copy email in the code. I have tried everything and can't get it to work.. below is the code. Can anyone please help me...

    Thanks for your time,

    ///<%
    strToEmail = "myemailhere.com"
    strToName = "my name"
    strToSubject = "email subject here"

    Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
    Mailer.RemoteHost = "mail-fwd"


    strName = Request.form("name")
    strEmail = Request.form("email")
    strWebsite = Request.form("website")
    strPhone = Request.form("phone")
    strSubject = Request.form("subject")
    strMesg = Request.form("mesg")
    strBody = strMesg

    Mailer.FromName = strName
    Mailer.BodyText = strName
    Mailer.BodyText = strSubject
    Mailer.BodyText = strBody

    Mailer.FromAddress = strEmail

    Mailer.AddRecipient strToName, strToEmail
    Mailer.BodyText = strEmail
    Mailer.BodyText = strWebsite
    Mailer.BodyText = strPhone
    Mailer.Subject = (strToSubject)
    if Mailer.SendMail then
    Response.Write "status_box.status_text=Your message has been sent. Thank you."
    else
    Response.Write "status_box.status_text=Error: Fail to sent your message."
    Response.Write Mailer.Response
    end if
    %>///

    A wise man gives advice, but a wiser man learns from it and uses it. Smart people learn from others mistakes. The blessing is on the other side of your tribulation.

  2. Internet, Programming and Graphics   -   #2
    In SMTPsvg.Mailer,

    just provide

    Mailer.AddBCC "Name of The Person", EmailAddress

    example :

    Mailer.AddBCC "Programmer", [email protected]

    The 'Bcc' property holds the e-mail address of the people you wish to receive Blind Copies of the e-mail.

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
  •