(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 ?