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 = "<HTML><H1>TEST EMAIL</H1><HTML>"
myMail.Send
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 = "<HTML><H1>TEST EMAIL</H1><HTML>"
myMail.Send