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:
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:
<!-- #INCLUDE VIRTUAL="/english/list_of_emails.inc" -->
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 + "
an active line?
<Edited by Chad J on 12-27-2000 at 07:11 PM>
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. ;)
Mailer.cc = Request.FORM("className")
But the forum doesn't seem to allow you to delete or edit your post - strange.
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?