ASP and CDONTS

by Matthew Ohlman <matthew(at)ohlman.com>

 Date:  Mon, 24 Jun 2002 16:57:18 -0500
 To:  hwg-basics(at)hwg.org
  todo: View Thread, Original
Hi list. Sorry this may be off topic, but I hope everyone is doing well. I 
have wrote an ASP script, that involves CDONTS. Here is my code:

-----------------------
<.%

   Dim objMail
   Set objMail  = CreateObject("CDONTS.NewMail")

objMail.To = "ohlman(at)ohlman.com"
objMail.From = request.form("email")
objMail.Subject = "Web Design Offer"
objMail.Body = request.form("comments")
objMail.send

If err THEN
  response.write err.description
else
  response.write ("Mail sent")

end if
%.>
------------------------------

OK. It works great if I take out the request.form("email") and 
request.form("comments"), and just replace them with text (with quotes). 
But when I try it with the code above it doesn't give me an error, and it 
says mail sent, but it just doesn't arrive in my inbox. If somebody could 
give me some help or point me in the right direction, it would be greatly 
appreciated. Thanks in advance.

Matthew



| Matthew Ohlman
| Ohlman Pages
| http://www.ohlman.com/
"There's a difference between a philosophy and a bumper sticker. "
     Charles M. Schulz

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA