Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: HTML EMAIL USING CDO - ASP GURU'S PLEASE HELP


Message #1 by "Binu Mathew" <binu_k_mathew@h...> on Thu, 27 Dec 2001 03:02:22
Can an ASP Guru please help me? Specifically, I would like to know how I 

can send HTML email using CDO, and not CDONTS?  I found plenty of 

information on sending HTML mail using CDONTS, but none so far using CDO 

with Exchange Server.  



My script sends email in text format, but not in HTML.  Here is part of my 

code that sends the text email (it reads the addresses from a database and 

greets each individual by their firt name):



strToList = Request.Form("sendEmail")(i)

strSubject = Request.Form("Subject")

strBody = Request.Form("Body")

strImportance = Request.Form("Importance")

Set objNewMessage = objCurSession.Outbox.Messages.Add

objNewMessage.Subject = strSubject

objNewMessage.Text = "Dear " & objRS.Fields("first_name") & ", " & 

vbNewLine & vbNewLine & strBody

objNewMessage.Update



How can I send this as HTML mail?  Are there any special objects, methods 

I should be using?



Thanks,



BM


  Return to Index