RE: ASPMail Help Request
by Klaas De Waele <klaas(at)gracegraphics.be>
|
| Date: |
Thu, 15 Nov 2001 09:16:12 +0100 |
| To: |
"'Blue's ArtHouse Graphics & Web Design'" <blue(at)bluesarthouse.com>, "'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Personally, I'd also get rid of the refresh function and replace it with
response.redirect "thankyou.html". Then just take care you haven't written
anything to the browser yet (this is a html header).
- Kayjey -
> -----Oorspronkelijk bericht-----
> Van: owner-hwg-techniques(at)hwg.org
> [mailto:owner-hwg-techniques(at)hwg.org]Namens Blue's ArtHouse Graphics &
> Web Design
> Verzonden: donderdag 15 november 2001 9:01
> Aan: hwg-techniques(at)hwg.org
> Onderwerp: ASPMail Help Request
>
>
> I am trying to set up an asp script for the first time and
> have one question
> that I know someone out there will know the answer to. I am
> trying to use
> this form to send the contents of a submitted form to a
> specified e-mail
> address. I am receiving the e-mail but it is blank. I know
> the problem is
> this line:
>
> Mailer.BodyText = Request.Form("Form")
>
> But I don't know the correct syntax. What goes between the
> ""??? I have
> been scouring the help files at the site where I got the form and they
> assume I already know this. The web site is
> http://www.cateringtoyou-stl.net if you are curious.
>
> The script is below:
>
> <.%
> Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
> Mailer.FromName = "Catering To You"
> Mailer.FromAddress= "service(at)cateringtoyou-stl.net"
> Mailer.RemoteHost = "mail.cateringtoyou-stl.net"
> Mailer.AddRecipient "Blue Tapp", "blue(at)bluesarthouse.com"
> Mailer.Subject = "Inquiry From Web Site"
> Mailer.BodyText = Request.Form("Form")
> if Mailer.SendMail then
> Response.Write "<html><head><title>Catering To
> You</title></head><body><meta http-equiv='refresh'
> content='1;URL=http://www.cateringtoyou-stl.net/thankyou.html'
> ></BODY></HTML
> >"
> else
> Response.Write "Mail send failure. Error was " & Mailer.Response
> end if
> %>
>
> TIA!
> Blue
>
>
>
> Blue Tapp
> Blue's ArtHouse Graphics & Web Design
> 705 North Florissant Road
> Ferguson, MO 63135
> (314) 839-0634
> fax: (314) 839-1557
> url: www.bluesarthouse.com
> e-mail: blue(at)bluesarthouse.com
>
> "Time to get a web site!"
>
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.