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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I create an email in HTML format?

Status
Not open for further replies.

Charterhouse

Programmer
Sep 25, 2006
12
0
0
GB
I am trying to create an email whose content is in HTML format type. The method code I'm using (in VFP8) is as follows:-


Code:
PARAMETERS pToWhom, pTitle, pBody
oOutlook = GETOBJECT(,"Outlook.Application")
oMailItem = oOutlook.CreateItem(0)
oMailItem.To = pToWhom
oMailItem.Subject = pTitle
oMailItem.Body = pBody
oMailItem.Save()
oMailItem.Send()
RELEASE oMailItem
RELEASE oOutlook

This works find for a plain text, but I cannot find any oMailItem.EmailType property or whatever it might be called in the Object Model for Outlook.

Also would the oMailItem.Body = have to be in HTML?

I sure this cannot be very difficult. Any Suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top