Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reply to header using CDONTS

Status
Not open for further replies.

retromagik

Programmer
Oct 29, 2003
2
US
I have a form set up on a website. The user enters in their email address along with a few other things and when they click the submit button the information is emailed to a group of people (note the To, Cc and Bcc in the script below). What currently happens is that when this message is view in an email account and it is replied to it only goes back to the originator. What I need to have happen is this message needs to go not only to the originator but several others. I can't seem to add script after the Request.Form("email")without getting error messages. Is there a way to create a Reply-Cc or add on additional address?

Here is my code:

<%
Set objCDONTSMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

objCDONTSMail.From = Request.Form (&quot;email&quot;)
objCDONTSMail.To = (&quot;to@somewhere.com&quot;)
objCDONTSMail.Cc = (&quot;cc@somewhere.com&quot;)
objCDONTSMail.Bcc = (&quot;bcc@somewhere.com&quot;)
objCDONTSMail.Subject = &quot;Online Form&quot;
objCDONTSMail.Body = Request.Form (&quot;body&quot;)

objCDONTSMail.Value(&quot;Reply-To&quot;) = Request.Form(&quot;email&quot;)

objCDONTSMail.Send ()

Set objCDONTSMail = Nothing
%>
 
Hi,

that's not possible I'm afraid, it depends entirely upon the software that the email is being read in.

As far as I know what you are trying to do is impossible

Thanks



Hope this helps,

Phil Clare
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top