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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

change mail format



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 29th 09, 10:16 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default change mail format

can we change mail format when send a mail. Plain text/html/rich text use
for mail format. I think _MailItem class does not provide this utility.


  #2  
Old December 29th 09, 02:06 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default change mail format

Use MailItem.BodyFormat and set the format to what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
can we change mail format when send a mail. Plain text/html/rich text use
for mail format. I think _MailItem class does not provide this utility.


  #3  
Old December 30th 09, 08:36 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default change mail format

Thanks, MailItem.BodyFormat works fine.
If i send a mail (have image in body) using rich text format and change
format for html in application_send event then image is lost.
Is there any solution for that or i need to convert this mail from rtf to
html format on exchange server.
Is there any fuction available for this task?
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Use MailItem.BodyFormat and set the format to what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
can we change mail format when send a mail. Plain text/html/rich text use
for mail format. I think _MailItem class does not provide this utility.




  #4  
Old December 30th 09, 02:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default change mail format

You should be changing the format before that event, either on opening the
item or possibly in item_send.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
Thanks, MailItem.BodyFormat works fine.
If i send a mail (have image in body) using rich text format and change
format for html in application_send event then image is lost.
Is there any solution for that or i need to convert this mail from rtf to
html format on exchange server.
Is there any fuction available for this task?


  #5  
Old January 4th 10, 09:32 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default change mail format

If i change the format from rich text to html in item_send then image is
lost.
There is no use of change in item_open because before sending the mail i can
change it back to rich text.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
You should be changing the format before that event, either on opening the
item or possibly in item_send.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
Thanks, MailItem.BodyFormat works fine.
If i send a mail (have image in body) using rich text format and change
format for html in application_send event then image is lost.
Is there any solution for that or i need to convert this mail from rtf
to html format on exchange server.
Is there any fuction available for this task?




  #6  
Old January 4th 10, 04:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default change mail format

There is no BeforeSend() event, so if Send() is too late and Open() or
Activate() are too early then I have no other suggestions for you.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
If i change the format from rich text to html in item_send then image is
lost.
There is no use of change in item_open because before sending the mail i
can change it back to rich text.


 




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
Mail Format Changes from HTML to RTF Upon Forward - How to change Delnang Outlook - Using Forms 7 January 12th 10 03:07 PM
How to change message format while forwarding a mail html to rft Outlook and VBA 1 May 26th 09 03:59 PM
Change format of a mail back to text-only Markus Jakobi Outlook and VBA 2 March 7th 07 08:29 AM
How to change mail format settings Ram Add-ins for Outlook 0 April 5th 06 03:58 PM
How to change Mail Format in Outlook Ram Add-ins for Outlook 1 March 28th 06 03:36 PM


All times are GMT +1. The time now is 12:28 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.