how to create mail autoresponse use CDO

Results 1 to 2 of 2

Thread: how to create mail autoresponse use CDO

  1. #1
    Nanjar Budiman Guest

    Default how to create mail autoresponse use CDO

    Please help me..!<BR>how to create mail autoresponse use CDO

  2. #2
    icabod Guest

    Default CDO Autoresponder...

    Not sure if this is what you mean, but...<BR><BR>When you have a form, and when the form is submitted and you want a response sent to the sending party... you just use CDO like you would for normal mailing... execpt you reverse the addresses.<BR><BR>So, set your FROM variable to whatever you want (probably YOUR email address).. and set the SENDTO variable to:<BR>Request.Form("EMAIL") &#039where EMAIL is the name of the form input with the email address in it.<BR><BR>This SHOULD just send the mail to the user, instead of YOU.<BR><BR>------------<BR>&#060;%<BR>FROM = ""<BR>SENDTO = Request.Form("EMAIL")<BR>SUBJECT = "Thanks for visiting!"<BR>MailBody = "So come back again sometime.."<BR>Set objNewMail = CreateObject("CDONTS.NewMail")<BR>objNewMail.Send FROM,SENDTO,SUBJECT,MAILBODY, 1<BR>Set objNewMail = Nothing<BR><BR>Response.Redirect("thankyoupage.asp ")<BR>%&#062;<BR>------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts