Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: CDO


Message #1 by "Elizabeta Siljanovski" <elizabetas@m...> on Fri, 21 Dec 2001 16:35:42 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_0001_01C18A3D.8CC121B0

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Hi,

 

I'm trying to understand what are all the things I need to use CDO

components to send mail. 

First of all what files I need, where do they have to be, how do I

include refferences to them in the page that creates the mail.

 

Also, in my message body I have several elements. I have plain text but

I also have some variables. What is the syntax for making a message body

like that. 

 

Lastly, is the sender value optional?

 

The error is:

 

Error Type:

Server object, ASP 0177 (0x8007007E)

8007007e

/TechStatus/CreateLog.asp, line 50

 

This is what I I'm trying to do:

  

set mail=server.CreateObject("CDONTS.NewMail")

 

dim mail (it gives me the same errors with or without this declaration

 

set mail=server.CreateObject("CDONTS.NewMail") 

mail.From= "Elizabetas@m..." 

mail.To = Elizabetas@m...

Subject = "Equipment Problem" 

mail.Body = "Room: " & Room & " Equipment: " & Equipment & " Part: " &

Part & "Description: " & Description & " mail.BodyFormat = 0 

mail.Importance = 1 

mail.Send 

set mail=nothing

 

 

 

thanks a lot!

 








Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Sat, 22 Dec 2001 00:21:56 +0100
This is a multi-part message in MIME format.



------=_NextPart_000_0002_01C18A7E.A9CEA890

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



search on support.microsoft.com returned the following page:

http://support.microsoft.com/default.aspx?scid=kb;DA;q273744



cdonts example at 4guysfromrolla:

http://www.4guysfromrolla.com/webtech/faq/Email/faq2.shtml



-Kim



  -----Original Message-----

  From: Elizabeta Siljanovski [mailto:elizabetas@m...]

  Sent: 21. december 2001 22:36

  To: ASP Databases

  Subject: [asp_databases] CDO





  Hi,







  I'm trying to understand what are all the things I need to use CDO

components to send mail.



  First of all what files I need, where do they have to be, how do I include

refferences to them in the page that creates the mail.







  Also, in my message body I have several elements. I have plain text but I

also have some variables. What is the syntax for making a message body like

that.







  Lastly, is the sender value optional?







  The error is:







  Error Type:



  Server object, ASP 0177 (0x8007007E)



  8007007e



  /TechStatus/CreateLog.asp, line 50







  This is what I I'm trying to do:







  set mail=server.CreateObject("CDONTS.NewMail")







  dim mail (it gives me the same errors with or without this declaration







  set mail=server.CreateObject("CDONTS.NewMail")



  mail.From= "Elizabetas@m..."



  mail.To = Elizabetas@m...



  Subject = "Equipment Problem"



  mail.Body = "Room: " & Room & " Equipment: " & Equipment & " Part: " &

Part & "Description: " & Description & " mail.BodyFormat = 0



  mail.Importance = 1



  mail.Send



  set mail=nothing















  thanks a lot!










$subst('Email.Unsub').







  Return to Index