Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Re: [RE: cant receive email]


Message #1 by M FAKRUTHEEN <fakru@u...> on 8 Jun 2001 21:58:12 MDT
Hi,

  I am also facing the same problem. but in my case SMTP service is start

ed. I

am using IIS 5.0 , if u get the solution for the same please let me know.





my mail id is: fakru@u...



regards

fakru







"Alex Shiell, ITS, EC, SE" <alex.shiell@s...> wrote:

is your SMTP service correctly configured and running?



-----Original Message-----

From: John Sen Yong [mailto:yjohns@t...]

Sent: 07 June 2001 18:34

To: ASP CDO

Subject: [asp_cdo] cant receive email





i try to run a source code that when the page load up, it will automicall

y

send an email to me..but i cant receive the mail although when i load thi

s

page, i have connection to internet..why?

the code is something like this:

please help..

Set newMailObj =3D CreateObject("CDONTS.Newmail")

recipStr =3D "asprecipient@y..."

newMailObj.To =3D recipStr

newMailObj.Subject =3D "Check it out!"

newMailObj.Body =3D "Here's some email for you"

newMailObj.Send

Set newMailObj =3D Nothing

%>



<HTML>

<HEAD>

<META NAME=3D"GENERATOR" Content=3D"Microsoft Visual Studio 6.0">

</HEAD>

<BODY>



<P>Sent mail to <%=3DrecipStr%>.</P>



</BODY>

</HTML>



Message #2 by "Siegfried Weber" <sweber@c...> on Sat, 9 Jun 2001 16:04:19 +0200
You need to configure the IIS 4/5 SMTP service. This is the server who

is responsible for message delivery submitted by CDONTS. This is always

the local IIS 4/5 computer because CDONTS drops the message into the

so-called pickup directory.



You need to make sure that the SMTP service can resolve the target

domain name via DNS to a valid host and MX record. This has to be

configured on the network card of the computer.



Also make sure that the mail address used as originator can be relayed

to the intended recipient. By default relaying is denied on the SMTP

service (good thing!) and you need to open it up to have your code

working. I always open it only for the local IIS computer TCP/IP address

to prevent SPAM'ers to relay through my server.



All this information is BTW pretty well covered in the IIS5

documentation of Windows 2000 Server.



</Siegfried>





> -----Original Message-----

> From: M FAKRUTHEEN [mailto:fakru@u...]

> Sent: Saturday, June 09, 2001 5:58 AM

> To: ASP CDO

> Subject: [asp_cdo] Re: [RE: cant receive email]

>

> Hi,

>   I am also facing the same problem. but in my case SMTP service is

> started. I

> am using IIS 5.0 , if u get the solution for the same please let me

know.

>

> my mail id is: fakru@u...

>

> regards

> fakru

>

>

>

> "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> wrote:

> is your SMTP service correctly configured and running?

>

> -----Original Message-----

> From: John Sen Yong [mailto:yjohns@t...]

> Sent: 07 June 2001 18:34

> To: ASP CDO

> Subject: [asp_cdo] cant receive email

>

>

> i try to run a source code that when the page load up, it will

automically

> send an email to me..but i cant receive the mail although when i load

this

> page, i have connection to internet..why?

> the code is something like this:

> please help..

> Set newMailObj =3D CreateObject("CDONTS.Newmail")

> recipStr =3D "asprecipient@y..."

> newMailObj.To =3D recipStr

> newMailObj.Subject =3D "Check it out!"

> newMailObj.Body =3D "Here's some email for you"

> newMailObj.Send

> Set newMailObj =3D Nothing

> %>

>

> <HTML>

> <HEAD>

> <META NAME=3D"GENERATOR" Content=3D"Microsoft Visual Studio 6.0">

> </HEAD>

> <BODY>

>

> <P>Sent mail to <%=3DrecipStr%>.</P>

>

> </BODY>

> </HTML>




  Return to Index