![]() |
Mail is received in Plain text even formatted and sent in HTML
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").GetDefaultFo lder(4) loMailItem = loOutBox.Items.Add(0) loMailItem.Subject = "Subject" loMailItem.BodyFormat = 2 loMailItem.Body = HTML text loMailItem.HTMLBody = HTML text loMailItem.To = loMailItem.Send() Please could someone advice, what could be the cause? |
Mail is received in Plain text even formatted and sent in HTML
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: 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").GetDefaultFo lder(4) loMailItem = loOutBox.Items.Add(0) loMailItem.Subject = "Subject" loMailItem.BodyFormat = 2 loMailItem.Body = HTML text loMailItem.HTMLBody = HTML text loMailItem.To = loMailItem.Send() Please could someone advice, what could be the cause? |
All times are GMT +1. The time now is 05:07 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com