|
 |
asp_cdo thread: cant receive email
Message #1 by "John Sen Yong" <yjohns@t...> on Fri, 8 Jun 2001 01:24:01 +0800
|
|
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 = CreateObject("CDONTS.Newmail")
recipStr = "asprecipient@y..."
newMailObj.To = recipStr
newMailObj.Subject = "Check it out!"
newMailObj.Body = "Here's some email for you"
newMailObj.Send
Set newMailObj = Nothing
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P>Sent mail to <%=recipStr%>.</P>
</BODY>
</HTML>
Message #2 by "Jonathan McNeil" <jmcneil@v...> on Thu, 7 Jun 2001 10:38:49 -0700
|
|
Try Server.CreateObject instead of just CreateObject.
----- Original Message -----
From: "John Sen Yong" <yjohns@t...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Thursday, June 07, 2001 10:34 AM
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 = CreateObject("CDONTS.Newmail")
> recipStr = "asprecipient@y..."
> newMailObj.To = recipStr
> newMailObj.Subject = "Check it out!"
> newMailObj.Body = "Here's some email for you"
> newMailObj.Send
> Set newMailObj = Nothing
> %>
>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>
>
> <P>Sent mail to <%=recipStr%>.</P>
>
> </BODY>
> </HTML>
>
>
>
Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 8 Jun 2001 10:26:08 +0100
|
|
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>
|
|
 |