Sending an email in RTF

  • Thread starter Thread starter Amit Basu
  • Start date Start date
A

Amit Basu

Hi,

I need to fill in the addressees of an email and send it
programmatically. This email has an Outlook form, so it needs to be sent
in RTF. I realize that I need to have the "Always send to this recipient
in Microsoft Outlook rich-text format" property set for each of the
recipient for this to work. If I do not have the addressees as my
Outlook Contacts, is there a way to set this property programmatically
while constrcuting the MailItem?

I tried to set the EditorFormat for the MailItem to RichText, but it
didn't work. The recipient received the mail as Plain Text, but as soon
as I manually checked the property mentioned above, it worked fine.

Thanks a lot in advance.

Amit
 
Outlook version?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
And this message is about? The newsgroup interface at Developersdex (http://www.developersdex.com) does not automatically quote the text of the original message when you post a reply. Please take the time to quote the original message manually so that people reading your current response can understand what you're talking about. Otherwise, you may not receive the answer you're looking for.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Sue,

This was my original question:

---------------------------------------------------------
I need to fill in the addressees of an email and send it
programmatically. This email has an Outlook form, so it needs to be sent
in RTF. I realize that I need to have the "Always send to this recipient
in Microsoft Outlook rich-text format" property set for each of the
recipient for this to work. If I do not have the addressees as my
Outlook Contacts, is there a way to set this property programmatically
while constrcuting the MailItem?

I tried to set the EditorFormat for the MailItem to RichText, but it
didn't work. The recipient received the mail as Plain Text, but as soon
as I manually checked the property mentioned above, it worked fine.
---------------------------------------------------------

The software versions are as follows:

Outlook 2000
Exchange 5.5

Thanks.
Amit
 
And what was the additional information you sent in your other recent reply? You need to keep all that info together in your newsgroup posts. Otherwise, no one can see the full picture.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Sue,

THIS IS THE WHOLE ISSUE. There is no other information that I supplied
related to this. Isn't the question clear?

---------------------------------------------------------
I need to fill in the addressees of an email and send it
programmatically. This email has an Outlook form, so it needs to be sent
in RTF. I realize that I need to have the "Always send to this recipient
in Microsoft Outlook rich-text format" property set for each of the
recipient for this to work. If I do not have the addressees as my
Outlook Contacts, is there a way to set this property programmatically
while constrcuting the MailItem?

I tried to set the EditorFormat for the MailItem to RichText, but it
didn't work. The recipient received the mail as Plain Text, but as soon
as I manually checked the property mentioned above, it worked fine.

I am using:

Outlook 2000
Exchange 5.5
 
There should be a MAPI property on the recipient associated with this. I'd pull out Outlook Spy (http://www.dimastr.com) and compare recipients, one with, one without.

Another possible strategy is to create the message using CDO. As shown at http://www.cdolive.com/cdo5.htm#SendMessageRTF, if you enter the recipient address as SMTP:name@domain, it's automatically marked for RTF. Quirky, yes?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top