Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDont object


Message #1 by "David BG" <johnson_bg@h...> on Thu, 28 Sep 2000 17:43:48 GMT
Hi, I have moved on from Beginning ASP 3.0 to Professional ASP 3.0. I love 

the first book so much, and now go on applying the next one to my work. 

Recently, I studied the chapter relating to CDONT object and applied it to 

my work task. As I try the following code in ASP page, it works only for 

intranet or internal network, but NOT out through  internet like sending to 

a hotmail address, or yahoo one:





----------------------------------

Dim objCDOMail

Set objCDOMail = Server.Createobject("CDONTS.NewMail")



objCDOMail.TO = "afriendname@h..."

objCDOMail.From = "myemailname@h... (David BG)"



objCDOMail.body = "Testing email from ASP page"

objCDOMail.Send



objCDOMail.Close

Set objCDOMail = Nothing



-----------------------------------



If I use the intranet email address, it work.

Is there any wrong with my coding?







Thanks,



David BG

_________________________________________________________________________


  Return to Index