Groups | Blog | Home
all groups > inetserver asp components > february 2004 >

inetserver asp components : CDONTS is driving me crazy. Please help !!!


owen
2/17/2004 8:51:44 AM
Hi,

I am trying to create a web page in ASP where the user enters their name and
email address, and when they submit the form, an email is automatically sent
to them. I am using CDONTs to try and acheive this. Right now I'm just
testing with my own email address in the "To" property.

The problem: The email does not get sent.

When tested on my local machine, no email is sent whatsoever. The problem
is slightly different when I tried it on the internet: The test email wasnt
sent, but I got an "Undeliverable mail" email sent to my "From" address.

I have checked the following already:
1) I am definately using a VALID "From" and "To" address. (the "To" is my
own email address, the "From" is something like "mail@mydomain.co.uk" where
mydomain is my website domain name).
2) The "From" and "To" addresses are different to each other.
3) CDONTs is definately installed and registered on my machine + my webhost.
4) SMTP service is running on my machine + my webhost.
5) There is nothing fancy in the "Body" property, just plain text.

This seems to be a fairly common problem, but I cannot find a definitive
answer. I would really appreciate a simple answer to get this working, or
alternatively a link to some kind of FAQ page for CDONTs problems.

Thanks!
Owen

PS. would appreciate replies cc'd via email :o)
owen.southwood@mantix.com

Adrian Forbes [ASP MVP]
2/17/2004 11:55:33 PM
[quoted text, click to view]
webhost.

CDONTS is just a wrapper object that creates files in the Pickup folder of
your server. It will never fail and doesn't actually send e-mail

[quoted text, click to view]

It is the SMTP service that sends the mail so yours probably isn't correctly
configured. Have you tried trying to send mail through your SMTP service
using, say Outlook or Outlook Express?

Robin
2/18/2004 8:47:20 AM
If you're running Office 2000 that is probably why it's not working. Check
Microsoft's Knowledge-base, I think they explain it in there. But it has
something to do with MAPI being disabled.


[quoted text, click to view]

owen
2/18/2004 10:35:11 AM

[quoted text, click to view]


By that do you mean do anything different to my usual with Outlook?

Emails work fine with Outlook but not with CDONTS.


Owen


owen
2/18/2004 10:36:50 AM

[quoted text, click to view]

OK so where is this pickup folder (where can I find out?) so I can check the
mails are actually sitting there.

I think the problem is that CDONTS' emails are "sitting" in the pickup
folder and never being "pushed" out by SMTP.

Owen

Serve Laurijssen
2/18/2004 12:00:46 PM

[quoted text, click to view]

Look in inetpub\mailroot
If the mail is in the drop directory it is probably already sent because you
sent the mail to the same domainname as the server's domain.
Try sending a mail to an external account.

AddThis Social Bookmark Button