p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asptoday_discuss thread: Sending Email STMP Virtual Server


Message #1 by "Gib Worth" <gib.worth@v...> on Fri, 7 Sep 2001 01:29:11
All,



 



I am trying to send a simple email message to myself from an ASP page as 

described on the ASPToday.com site.  The code is:



<%@LANGUAGE="VBScript"%>

<HTML>

<BODY>

Sending a simple email message using CDO 2000...<BR>



<%

Set objMessage = Server.CreateObject("CDO.Message")

objMessage.To = "gib.worth@v..."

objMessage.From = "gib.worth@v..."

objMessage.Subject = "A Test Message"

objMessage.TextBody = "This is a test message."

objMessage.Send

Set objMessage = Nothing  'release the object reference

%>

Message sent.

</BODY>

</HTML>



This returns an HTTP 500 ? Internal server error.  Please help!  I think I 

have the STMP Virt. Srvr configured properly due to the fact that I can 

place a email message (text form) in the Pickup folder of the server and 

it gets delivered properly.  By taking the objMessage.Send out, the page 

displays.  Any help would be appreciated.



Gib

Message #2 by "Gib Worth" <gib.worth@v...> on Sun, 9 Sep 2001 05:08:05
All,



I figured this out...permissions problems.  Thanks to all who would have 

been so kind to reply.



Gib





> All,

> 

>  

> 

> I am trying to send a simple email message to myself from an ASP page as 

> described on the ASPToday.com site.  The code is:

> 

> <%@LANGUAGE="VBScript"%>

> <HTML>

> <BODY>

> Sending a simple email message using CDO 2000...<BR>

> 

> <%

> Set objMessage = Server.CreateObject("CDO.Message")

> objMessage.To = "gib.worth@v..."

> objMessage.From = "gib.worth@v..."

> objMessage.Subject = "A Test Message"

> objMessage.TextBody = "This is a test message."

> objMessage.Send

> Set objMessage = Nothing  'release the object reference

> %>

> Message sent.

> </BODY>

> </HTML>

> 

> This returns an HTTP 500 ? Internal server error.  Please help!  I think 

I 

> have the STMP Virt. Srvr configured properly due to the fact that I can 

> place a email message (text form) in the Pickup folder of the server and 

> it gets delivered properly.  By taking the objMessage.Send out, the page 

> displays.  Any help would be appreciated.

> 

> Gib


  Return to Index