Re: ASPMail Help Request
by "Andre Crane" <andre(at)terracrane.com>
|
Date: |
Wed, 14 Nov 2001 17:08:55 -0500 |
To: |
"Blue's ArtHouse Graphics & Web Design" <blue(at)bluesarthouse.com>, <hwg-techniques(at)hwg.org> |
References: |
t2t0v1 |
|
todo: View
Thread,
Original
|
|
do you actually have a form field that is named "form"? such as <.input
type="text" name="form" size="32">?
If not, then it's looking for a specific form field named "form".
if you have a form similar to this:
<.input type="text" name="firstname">
<.input type="text" name="lastname">
<.input type="text" name="emailaddy">
<textarea name="messagebody" cols="24" wrap="PHYSICAL" rows="5"></textarea>
Then Mailer.BodyText = Request.Form("Form") should instead be something
like:
(this is written as if all on one line)
Mailer.BodyText = "Name: " & request.form("firstname") & " " &
request.form("lastname")" & chr(13) & "Email: " & request.form("emailaddy")
& chr(13) & chr(13) & "Message text: " & request.form("messagebody")
this would output something like the following in the body of the email sent
to you:
--------------------------------------------------
Name: John Doe
Email: jdoe(at)yahoo.com
Message text: Hello, I am writing for some more product information. Please
respond fast!
--------------------------------------------------
Now, if what you are trying to do is just lump every form field into the
email, then what you did is close, just drop the "("Form")" so that it
reads:
Mailer.BodyText = Request.Form
This will send everything in the form to you in what I believe is a comma
delimited list.
Andre
----- Original Message -----
From: "Blue's ArtHouse Graphics & Web Design" <blue(at)bluesarthouse.com>
To: <hwg-techniques(at)hwg.org>
Sent: Thursday, November 15, 2001 3:01 AM
Subject: 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