[thelist] ASP and form question

Joel Canfield joel at spinhead.com
Sun Jul 7 16:21:00 CDT 2002


> Could you take a look at my last post (yesterday) and see
> what I may still be doing wrong? Still can't get the form to
> send me email...and I'm getting desperate as this site is
> ready to be switched over from it's present host.

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



More information about the thelist mailing list