SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Dec 27, 2000, 19:09 #1
- 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...
Mailer.AddRecipient "",Request.Form("contactEmail")
an active line?
TIA,
Chad
<Edited by Chad J on 12-27-2000 at 07:11 PM>Chad J
Addict Fantasy Sports
-
Dec 28, 2000, 13:08 #2
- 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.
-
Dec 28, 2000, 13:12 #3
- 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.
-
Dec 28, 2000, 18:10 #4
- 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,
ChadChad J
Addict Fantasy Sports
Bookmarks