Mail is received in Plain text even formatted and sent in HTML

  • Thread starter Thread starter DPM
  • Start date Start date
D

DPM

Hi,

MS Outlook is automated to send out an email in HTML but when the email is
received from MS Outlook it is in plain text.
The email in Sent items is in HTML format.
If an email is created from MS Outlook itself(not programmetically) in HTML
and sent, when received it is in HTML format.

Following is the configuration of this computer
- Windows 2003 enterprise edition x64
- MS Outlook 2007 with excahnge server
- Logged on to the server using a Cirtix session
- Default email application of Windows is set to MS Outlook

In a Windows 2003 standard edition x64, with MS Outlook 2007 the mail is
sent and received in HTML without a problem.(without MS Excahnge Server and
Citrix)

Following is the code we use to generate and send the mail.

loOutLookSession = CREATEOBJECT('OutLook.Application')
loOutBox = loOutLookSession.GetNameSpace("MAPI").GetDefaultFolder(4)

loMailItem = loOutBox.Items.Add(0)
loMailItem.Subject = "Subject"
loMailItem.BodyFormat = 2
loMailItem.Body = <HTML text>
loMailItem.HTMLBody = <HTML text>
loMailItem.To = (e-mail address removed)
loMailItem.Send()

Please could someone advice, what could be the cause?
 
What happens if you don't write into Body but into HTMLBody only?

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
<http://www.vboffice.net/product.html?lang=en>


Am Fri, 21 May 2010 10:32:59 +0530 schrieb DPM:
 
Back
Top