SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Highlands Ranch, CO
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am working with a script that someone else wrote (since I am a layman) and I am looking to get the results of my form to be sent back to the person who submitted the form. This should be easy enough, but I don't have the proper syntax. Here is my code:

    Code:
    <!-- #INCLUDE VIRTUAL="/english/list_of_emails.inc" -->
    <%
    Dim BodyText
    Set Mailer = Server.CreateObject("CDONTS.NewMail")
    
    Mailer.From = Request.Form("contactEmail")
    Mailer.To = mailEducationRegistration
    
    rem Mailer.AddRecipient "",Request.Form("contactEmail")
    
    Mailer.Subject = "PwC CPI Saba Class Registration " & Request.FORM("className")
    
    BodyText = " " & vbCrLf
    BodyText = BodyText + "PwC CPI Saba Class Registration" & vbCrLf
    BodyText = BodyText + "Company Name:                " & Request.FORM("companyName") & vbCrLf
    BodyText = BodyText + "Address:                     " & Request.FORM("street") & vbCrLf
    BodyText = BodyText + "                          
    
    
    ETC...Etc...
    Now the current 'Mailer.To' needs to remain the way it is, and I need another copy of the email to go to 'RequestForm("contactEmail"). Can I just remove the commented out section of my code? ie. Making:

    Mailer.AddRecipient "",Request.Form("contactEmail")

    an active line?


    TIA,

    Chad
    <Edited by Chad J on 12-27-2000 at 07:11 PM>

  2. #2
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Chad.

    I don't know about that, but I think you can put

    Mailer.To = Request.FORM("className")

    to get the same effect. Why don't you test it.

  3. #3
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I meant

    Mailer.cc = Request.FORM("className")

    But the forum doesn't seem to allow you to delete or edit your post - strange.

  4. #4
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Highlands Ranch, CO
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jelly,

    Thank for your reply. I just relized that this should probably be in a different forum (Server side scripting).

    I did find reference to that last night (Mailer.Cc, and Mailer.Bcc), and YES it does work -Thanks for the post!

    Now that I have already started this, Does anyone know how I can add several email addresses? Say I wanted to CC 10 people? How to I write this?

    Thanks,

    Chad


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
  •