
How to send HTML email from outlook client without using CDONTS
I have difficulties to figure out how to meet this
client's needs.
The situation is like this.
(This is ASP solution and I hope this post is where it is
supposed to be)
I have dynamically produced HTML page and the customer
wants to send it as HTML while using some important
features of outlook function such as address and
attachment.
That means that I can not use CDONTS and they do not have
Exchange Server.
I tried to open client email form just like "mailto" does
in the web page.
In the local, I could successfully lauch the email form
with HTML results embedded with following code.
But somehow I could not do this with COM installation on
the web server. Of course, I have to open client email not
server's.
Please help me.
Public Sub SendMail()
Dim objOutlook As New Outlook.Application
Dim objMail As MailItem
Set objMail = objOutlook.CreateItem
(olMailItem) 'Create a new
'Mail
Item
With objMail
.To
.Subject = "Subject of mail
message" 'Subject line of
'mess
age
.HTMLBody = "<b>Body of mail
message</b>" 'Body of mail message
.Display
End With
Set objMail = Nothing
Set objOutlook = Nothing
End Sub
Two weeks attempts to open up HTML email for