Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS and html content


Message #1 by "William Milne" <wmilne01@e...> on Thu, 19 Oct 2000 12:21:14 +0100
(Hope this is not OT) I am trying to write some html type emails using ADO

and CDONTS. Here is some of the relevant script



<!-- METADATA TYPE="TypeLib" Name="Microsoft CDO for NTS 1.2 Library" UUID="{0E064ADD-9D99-11D0-ABE5-00AA0064D470}"
VERSION="1.2"-->



set objSendMail = CreateObject("CDONTS.NewMail")

with objSendMail

	.From = "wmilne@e..."

	.To = "wmilne@e..."

	.Subject = "New PRs " & Now()

	.BodyFormat = CdoBodyFormatHTML

	.Body = "<html><head></head><body>" & s & "</body></html>"

	.Send

end with

set objSendMail = nothing



I have set s = "hello" for this simple test, (although I would normally be

querying a database) so we get:



<html><head></head><body>hello</body></html>



The problem is it doesn't display as web content in my Outlook mail,

although emails from other sources do. Can anyone tell me what I am doing

wrong ?


  Return to Index