not CDO neither CDONTS
am 10.01.2007 09:12:52 von giorgio
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
Re: not CDO neither CDONTS
am 10.01.2007 17:05:45 von Daniel Crichton
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
Re: not CDO neither CDONTS
am 10.01.2007 21:39:53 von Dave Anderson
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.
Re: not CDO neither CDONTS
am 11.01.2007 01:11:00 von giorgio
Thanks to you 2.
It was a provider problem.
Re: not CDO neither CDONTS
am 11.01.2007 11:15:55 von Daniel Crichton
Dave wrote on Wed, 10 Jan 2007 14:39:53 -0600:
> 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.
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