Home > Archive > ASP > January 2007 > not CDO neither CDONTS
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
not CDO neither CDONTS
|
|
| Giorgio 2007-01-10, 3:56 am |
| Hi,
I'm working on this web space: NT4/Windows 98, Microsoft-IIS/4.0,
66.71.142.204
I can't send mail with CDO cause i get an error
http://66.71.142.204/ASWebNews/newsletters/mail.asp
<%
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "eeeSending email with CDO"
myMail.From = "mymail@mydomain.myext"
myMail.To = "mymail@mydomain.myext"
myMail.TextBody = "eeeeThis is a message."
myMail.Send
Set myMail = Nothing
%>
And with CDONTS, mails don't come
http://66.71.142.204/ASWebNews/newsletters/mail2.asp
<%
Set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.Subject = "eeeSending email with CDONTS"
myMail.From = "mymail@mydomain.myext"
myMail.To = "mymail@mydomain.myext"
myMail.Body = "eeeeThis is a message."
myMail.Send
Set myMail = Nothing
%>
How can i solve?
Thanks
| |
| Daniel Crichton 2007-01-10, 6:56 pm |
| Giorgio wrote on Wed, 10 Jan 2007 09:12:52 +0100:
> Hi,
> I'm working on this web space: NT4/Windows 98, Microsoft-IIS/4.0,
> 66.71.142.204
> I can't send mail with CDO cause i get an error
CDO was first introduced in Windows 2000, and is not available in IIS on
Windows NT 4.
> And with CDONTS, mails don't come
> http://66.71.142.204/ASWebNews/newsletters/mail2.asp
> <%
> Set myMail = Server.CreateObject("CDONTS.NewMail")
> myMail.Subject = "eeeSending email with CDONTS"
> myMail.From = "mymail@mydomain.myext"
> myMail.To = "mymail@mydomain.myext"
> myMail.Body = "eeeeThis is a message."
> myMail.Send
> Set myMail = Nothing
> %>
>
> How can i solve?
Check with the admin that the NT 4 Option Pack is installed - CDONTS is not
installed as part of IIS, it's an optional add-on.
As you get no error, I'm assuming it's installed. It's possible that it's
misconfigured, or the SMTP server it's passing the messages to is queueing
them or dumping them - maybe they haven't added the from and/or to domain to
their relay settings, or maybe they've just disabled CDONTS in favour of
another more reliable object.
Also ask if there is any alternative email object, such as ASPEmail,
ASPMail, or similar objects.
Dan
| |
| Dave Anderson 2007-01-10, 6:56 pm |
| Daniel Crichton wrote:
> Check with the admin that the NT 4 Option Pack is installed -
> CDONTS is not installed as part of IIS, it's an optional add-on.
IIRC, it is also necessary to ensure that SMTP services are running on the
web server and configured to relay from the host machine. I don't recall
seeing a way to point CDONTS messages to an external SMTP server.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
| |
| Giorgio 2007-01-10, 9:56 pm |
|
Thanks to you 2.
It was a provider problem.
| |
| Daniel Crichton 2007-01-11, 6:56 pm |
| Dave wrote on Wed, 10 Jan 2007 14:39:53 -0600:
> Daniel Crichton wrote:
>
> IIRC, it is also necessary to ensure that SMTP services are running on the
> web server and configured to relay from the host machine. I don't recall
> seeing a way to point CDONTS messages to an external SMTP server.
Yeah, my mistake, I'd read how the notes on how to get CDONTS to send via a
non-local SMTP server and missed the details - apparently it still requires
a local SMTP server and that has to have it's "Smart Host" setting pointing
to the non-local server. Yet another good reason not to use CDONTS ...
Dan
|
|
|
|
|