Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2005, 07:10 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default CDO.Message limitations???

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="[email protected]"
myMail.To="[email protected]"
myMail.HTMLBody = "<html><p>Booking Confirmation from xxxxx</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
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old March 3rd, 2005, 06:52 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello check this code
<%
  Dim objet_NewMail

  Set objet_NewMail = CreateObject("CDONTS.NewMail")

  Contenu = "hhhhhh"
  objet_NewMail.From = "[email protected]"
  objet_NewMail.To = "[email protected]"
  objet_NewMail.Subject = "Courrier électronique"
  objet_NewMail.BodyFormat = 1
  objet_NewMail.MailFormat = 1
  objet_NewMail.Body = Contenu
  objet_NewMail.Importance = 2
  'objet_NewMail.AttachFile = "c:\suren.doc", "Pièce jointe"
  objet_NewMail.Send

  Set objet_NewMail = Nothing
%>

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Source: CDO.Message.1 please help me:) ilknur SQL Server 2000 1 July 23rd, 2006 12:52 PM
CDO.Message form field crmpicco Classic ASP Basics 0 March 15th, 2005 01:08 PM
Need help related CDO.Message shankhan Classic ASP Basics 9 January 2nd, 2005 07:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.