Forum Moderators: open
I have tried to add a second email recipient, and for some reason when I do, the results are not sent to either......
How can I have form results sent to more than one recipient?
I've gone into Form Properties> Options > E-Mail Results. I've tried putting a comma and both a semi-colon between recipients, and neither works. Please help! Thanks.
<%OPTION EXPLICIT%>
<%
dim mail, firstname, lastname,streetaddress,city,state,homephone,workphone,fax,email,commentsfirstname = Request.Form("firstname")
lastname = Request.Form("lastname")
streetaddress = Request.Form("streetaddress")
city = Request.Form("city")
state = Request.Form("state")
homephone = Request.Form("homephone")
workphone = Request.Form("workphone")
fax = Request.Form("fax")
email = Request.Form("email")
comments = Request.Form("comments")
'Create the object
set mail = server.CreateObject("CDONTS.NewMail")
mail.From = email
mail.To = "customerservice@domain.com"
mail.Subject = "Customer Contact"
mail.Body = "=================================" & vbcrlf & "Contact Name: " & firstname & " " & lastname & vbcrlf & "Contact Address: " & streetaddress & " " & city & " " & state & vbcrlf & "Contact Home Phone : " & homephone & vbcrlf & "Contact Work Phone: " & workphone & vbcrlf & "Contact Email: " & email & vbcrlf & "Contact Questions or Comments: " & comments & vbcrlf & "Contact Fax (if supplied): " & fax & vbcrlf
'If you want to place a carriage return in the body use vbCrLf.
mail.Send 'Send the message out.
set mail = nothing 'Clean up after yourself.
%>
Mac
if you aren't familiar with these things, search on google and you'll find all the info you'll ever need.
if you still can't figure it out, or have more questions, feel free to sticky me.
-Matt
For the dialog box that I'm referring to, you can view the following page on our site:
[gha-nc.org...]
Hope this helps,
Mitch