All you're doing is passing a string - which happens to contain html - to
CDO as the .htmlbody property of the message object. As far as where you
get this string, it's just like any other string value. You can write the
value in the code, pull it from a database, a template file, etc.
sHTMLBody = "<html><head><title>Email from
Fahad</title></head><body>........."
or
sHTMLBody = YourRecordset.Fields.Item(0).Value
or
sHTMLBody = YourFSOObject.OpenTextFile("C:\templateHTMLFile.ht m").ReadAll
'''etc.
Ray at work
"Fahad" <fa*********@yahoo.com.no.spam.please> wrote in message
news:4A**********************************@microsof t.com...
I want to build a system that sends formated HTML newsletter. Like the one
we recevive from microsoft. How do we include the whole page with the
pictures and style in an e-mail.
I am using CDOSYS
Do those developers use HTMLBody property or something else?