[thelist] ASP and form question

Sharon F. Malone sfmalo at 24caratdesign.com
Sun Jul 7 19:06:02 CDT 2002


Hi Joel:

Just tried it hard coding the objMail.From field and FINALLY got an email reply. However, all it has is:

Sent by:

At least I got a reply. But I wonder why I only got "Sent by:" without the other information I filled out? What do you think?

From: "Joel Canfield" <joel at spinhead.com>
Cc: <sfmalo at 24caratdesign.com>
Sent: Sunday, July 07, 2002 2:19 PM

> I looked back thru the thread and can't find whether you've tried it with a
> hard value for the 'From' value, like this:
>
> <%
> Dim objMail
> set objMail = Server.CreateObject("CDONTS.NewMail")
> objMail.From = "info at 24caratdesign.com"
> objMail.Subject = "Message from The Chocolate Foundry"
> objMail.To = "sfmalo at 24caratdesign.com"
> objMail.Body  = "Sent by: " & Request.Form("name") & vbCrlf & vbCrlf &
> Request.Form("message")
> objMail.Send
> set objMail = nothing
>
> Response.Redirect("confirm.html")
> %>
>
> I discovered with my CDONTS efforts that an invalid 'From' value will kill
> the message.
>
> > And, Tab, don't know the answer to your IP addy question.
>
> No IP needed. The script understands that you're running SMTP on the same
> machine as the script.
>
> Try it with static info in the 'From' field, and if that doesn't fly, try it
> with static info for the 'Body' as well, although that shouldn't affect it.
>
> I'll be here larnin' myself some PHP, so if you get thru these steps and
> have some feedback, I'll see what I can do to help.
>
> joel
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com




More information about the thelist mailing list