p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   ASP CDO.Message difficulty (http://p2p.wrox.com/showthread.php?t=26227)

crmpicco March 1st, 2005 07:48 AM

ASP CDO.Message difficulty
 
Can anyone tell me the limitations of CDO.Message.

I am trying to send a email automatically.

This code works when i have two of my own email addresses:

<%
pnrno="hijklmnop"
response.write "PNR No = " & pnrno & "<br>"
dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject="hijklmnop"
myMail.From="crmpicco@aol.com"
myMail.To="crmpicco@hotmail.com"
myMail.HTMLBody = "<html><p>Booking Confirmation from Picco</p>"
myMail.HTMLBody = "<p>This is a email to confirm that you have changed the status of booking :"&pnrno&" to Confirmed</p>"
myMail.HTMLBody = "<p>You have successfully confirmed booking number :"&pnrno&"</p></html>"
myMail.Send

response.Write "Email SENT....."
%>

But when i change the addresses it doesnt send. How does it know that the sender is my address? Picco


www.crmpicco.co.uk


All times are GMT -4. The time now is 05:55 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.