A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 21st 10, 07:02 AM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default 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?


Ads
  #2  
Old May 21st 10, 09:41 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 displaying all received html messages in plain text Eliseo Negrin Outlook - General Queries 6 August 7th 08 08:34 PM
Mail Merge Programs - HTML and Plain Text srm Outlook - General Queries 0 June 6th 08 05:03 PM
HTML mail became Plain Text saigontuna Outlook - General Queries 0 January 15th 08 05:58 AM
Some HTML messages are received as plain text in Outlook 2003 Bill J Outlook - Installation 5 October 13th 06 02:54 AM
mail format to plain text autom., when replying to rtf or html mai Martinez Outlook - Installation 2 April 13th 06 09:01 PM


All times are GMT +1. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.