Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending HTML format email from Outlook

Status
Not open for further replies.

Beesknees

Programmer
Feb 27, 2001
95
GB
I'm trying to send an email from a VB rpogram using the Outlook.MailItem object.
Everything works fine when sending to an internal address and the email is recieved with an HTML body. However when I send to an external email ( I use my hotmail account as a test) the text doesn't come up as HTML. It is just plain text.
I've seen others have had this problem, does anyone have a solution?
Here is the code I am using

Set myOutlook = New Outlook.Application
Dim myMail As Outlook.MailItem

Set myMail = myOutlook.CreateItem(olMailItem)

myMail.To = "markbeeson@hotmail.com"
myMail.Subject = "Subject"
myMail.HTMLBody = &quot;<HTML><H1>TEST EMAIL</H1><HTML>&quot;
myMail.Send
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top