Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Cant Send Mail using CDO


Message #1 by "afguy" <joe.mirrow@w...> on Thu, 6 Jun 2002 14:55:45
Friends,

I've been through this FAQ several times and I still can't find out why I 
get the error:

Unable to deliver message to the following recipients, due to being unable 
to connect successfully to the destination mail server.
--------------------------------------------------------------
The specific error code was 0xC00402C7.


The message sender was <>.


is there some kind of DNS setting in the Microsoft SMTP server?  If so, 
where is it?

Also, how do I create a local SMTP account?  Are accounts automatically 
created for each userlogin?
Message #2 by "Siegfried Weber" <sweber@c...> on Fri, 7 Jun 2002 00:14:03 +0200
How does your code looks like?

<Siegfried />

> -----Original Message-----
> From: afguy [mailto:joe.mirrow@w...]
> Sent: Thursday, June 06, 2002 4:56 PM
> To: ASP CDO
> Subject: [asp_cdo] Cant Send Mail using CDO
>
> Friends,
>
> I've been through this FAQ several times and I still can't find out
why I
> get the error:
>
> Unable to deliver message to the following recipients, due to being
unable
> to connect successfully to the destination mail server.
> --------------------------------------------------------------
> The specific error code was 0xC00402C7.
>
>
> The message sender was <>.
>
>
> is there some kind of DNS setting in the Microsoft SMTP server?  If
so,
> where is it?
>
> Also, how do I create a local SMTP account?  Are accounts
automatically
> created for each userlogin?
Message #3 by Mirrow Joe B Maj DODHSR5/SGL <Joe.Mirrow@w...> on Fri, 7 Jun 2002 08:46:44 -0400
It is standard code for sending email using ASP

<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
Dim strTo, strFrom, strSubject, strBody

strTo = "joemirrow@y..."
strFrom = "joemirrow@y..."
strSubject = "test"
strBody = "test" 

objCDO.To = strTo
objCDO.From = strFrom
objCDO.Subject = strSubject
objCDO.Body = strBody
objCDO.Send

Set objCDO = Nothing
%>

The mail is created but not sent out from the server.  I have telnet-ed into the SMTP server and it is working fine.  It's just that
the server cannot send it out.
Message #4 by "Siegfried Weber" <sweber@c...> on Fri, 7 Jun 2002 16:22:07 +0200
If messages get backed up on the IIS SMTP service the most common
problem is an incorrect DNS configuration. I'd check that first.

<Siegfried />

> -----Original Message-----
> From: Mirrow Joe B Maj DODHSR5/SGL [mailto:Joe.Mirrow@w...]
> Sent: Friday, June 07, 2002 2:47 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cant Send Mail using CDO
>
> It is standard code for sending email using ASP
>
> <%
> Dim objCDO
> Set objCDO =3D Server.CreateObject("CDONTS.NewMail")
> Dim strTo, strFrom, strSubject, strBody
>
> strTo =3D "joemirrow@y..."
> strFrom =3D "joemirrow@y..."
> strSubject =3D "test"
> strBody =3D "test"
>
> objCDO.To =3D strTo
> objCDO.From =3D strFrom
> objCDO.Subject =3D strSubject
> objCDO.Body =3D strBody
> objCDO.Send
>
> Set objCDO =3D Nothing
> %>
>
> The mail is created but not sent out from the server.  I have
telnet-ed
> into the SMTP server and it is working fine.  It's just that the
server
> cannot send it out.
>
Message #5 by Mirrow Joe B Maj DODHSR5/SGL <Joe.Mirrow@w...> on Mon, 10 Jun 2002 09:30:05 -0400
Mr. Weber,
If it's a 2000 server and the mail server is running on the same server, does the NIC have to have both IPs (the web server and Mail
Server) bound to it?  I assume it does.

-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Friday, June 07, 2002 10:22 AM
To: ASP CDO
Subject: [asp_cdo] RE: Cant Send Mail using CDO


If messages get backed up on the IIS SMTP service the most common
problem is an incorrect DNS configuration. I'd check that first.

<Siegfried />

> -----Original Message-----
> From: Mirrow Joe B Maj DODHSR5/SGL [mailto:Joe.Mirrow@w...]
> Sent: Friday, June 07, 2002 2:47 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cant Send Mail using CDO
> 
> It is standard code for sending email using ASP
> 
> <%
> Dim objCDO
> Set objCDO = Server.CreateObject("CDONTS.NewMail")
> Dim strTo, strFrom, strSubject, strBody
> 
> strTo = "joemirrow@y..."
> strFrom = "joemirrow@y..."
> strSubject = "test"
> strBody = "test"
> 
> objCDO.To = strTo
> objCDO.From = strFrom
> objCDO.Subject = strSubject
> objCDO.Body = strBody
> objCDO.Send
> 
> Set objCDO = Nothing
> %>
> 
> The mail is created but not sent out from the server.  I have
telnet-ed
> into the SMTP server and it is working fine.  It's just that the
server
> cannot send it out.
> 

Message #6 by "Siegfried Weber" <sweber@c...> on Tue, 11 Jun 2002 00:45:01 +0200
At least the mail server TCP/IP should be present at the NIC properties.
Also, and this is IMHO the important part, on the NIC (not sure where it
is on NT 4 - though) is place you can enter a DNS servers IP address. If
that's empty your SMTP server will be unable to locate the destination
mail server and message delivery will fail.

<Cheers:Siegfried runat=3D"server" />

> -----Original Message-----
> From: Mirrow Joe B Maj DODHSR5/SGL [mailto:Joe.Mirrow@w...]
> Sent: Monday, June 10, 2002 3:30 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cant Send Mail using CDO
>
> Mr. Weber,
> If it's a 2000 server and the mail server is running on the same
server,
> does the NIC have to have both IPs (the web server and Mail Server)
bound
> to it?  I assume it does.
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Friday, June 07, 2002 10:22 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cant Send Mail using CDO
>
>
> If messages get backed up on the IIS SMTP service the most common
> problem is an incorrect DNS configuration. I'd check that first.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Mirrow Joe B Maj DODHSR5/SGL [mailto:Joe.Mirrow@w...]
> > Sent: Friday, June 07, 2002 2:47 PM
> > To: ASP CDO
> > Subject: [asp_cdo] RE: Cant Send Mail using CDO
> >
> > It is standard code for sending email using ASP
> >
> > <%
> > Dim objCDO
> > Set objCDO =3D Server.CreateObject("CDONTS.NewMail")
> > Dim strTo, strFrom, strSubject, strBody
> >
> > strTo =3D "joemirrow@y..."
> > strFrom =3D "joemirrow@y..."
> > strSubject =3D "test"
> > strBody =3D "test"
> >
> > objCDO.To =3D strTo
> > objCDO.From =3D strFrom
> > objCDO.Subject =3D strSubject
> > objCDO.Body =3D strBody
> > objCDO.Send
> >
> > Set objCDO =3D Nothing
> > %>
> >
> > The mail is created but not sent out from the server.  I have
> telnet-ed
> > into the SMTP server and it is working fine.  It's just that the
> server
> > cannot send it out.
> >
>
>

  Return to Index