ASP Mail help

Results 1 to 2 of 2

Thread: ASP Mail help

  1. #1
    Join Date
    Dec 1969

    Default ASP Mail help

    ok, i have the asp Mail code in properly, however, each time I go to the page it automatically sends the mail, I do not want the mailer to send until the submit button is pushed, how do i accomplish this?<BR><BR>Any help would be great

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP Mail help

    Put your mail code in the page specified in your action tag on a different form: &#060;form action="mail.asp"&#062;<BR><BR>mail.asp would read something like:<BR><BR>do while not objRS.EOF<BR> set objEMail = Server.CreateObject("CDONTS.NewMail")<BR> objEMail.To = objRS("EMailAddress")<BR> objEMail.From = Request("txtFrom")<BR> objEMail.Subject = Request("txtSubject")<BR> objEMail.Body = Request("txtBody")<BR> objEMail.Send<BR> set objEMail = nothing<BR> objRS.MoveNext<BR> loop<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