PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Formatting of mail body and accessing mail signature

Reply

Formatting of mail body and accessing mail signature

 
Thread Tools Rate Thread
Old 11-03-2005, 06:33 AM   #1
Senapathy
Guest
 
Posts: n/a
Default Formatting of mail body and accessing mail signature


Hello,

I am using Outlook 2003.

I have an add-in to compose mails on clicking a taskbar button. Everything
is fine, but I want to beautify some things in the mail.

1) There are a few data in my mail body that I would like to make bold and
give different color. For e.g. a Due Date.
All I am currently doing is: mailItem.Body = "Some text.. blah blah..."
How to set a particular part of the body string alone as bold and with
different color?
I am having RichText as the mail format.

2) I have a mail signature set in my Outlook. At the end of the mail body, I
would like this signature to appear.
From where can I access the signature string? I checked the Application
object, but this doesn't have any property like signature. A search for
'signature' gives only pointers to digital signatures for encryption.

Thanks for any help!

Regards,
Sena


  Reply With Quote
Old 11-03-2005, 01:04 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Formatting of mail body and accessing mail signature

1) See http://www.outlookcode.com/d/formatmsg.htm. The WordMail and
Redemption SafeInspector methods are the easiest to implement.

2) See http://www.outlookcode.com/codedetail.aspx?id=615

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Senapathy" <senapathy.k_nospam@siemens.com> wrote in message
news:d0re43$hoq$1@news.mch.sbs.de...
> Hello,
>
> I am using Outlook 2003.
>
> I have an add-in to compose mails on clicking a taskbar button. Everything
> is fine, but I want to beautify some things in the mail.
>
> 1) There are a few data in my mail body that I would like to make bold and
> give different color. For e.g. a Due Date.
> All I am currently doing is: mailItem.Body = "Some text.. blah blah..."
> How to set a particular part of the body string alone as bold and with
> different color?
> I am having RichText as the mail format.
>
> 2) I have a mail signature set in my Outlook. At the end of the mail body,
> I
> would like this signature to appear.
> From where can I access the signature string? I checked the Application
> object, but this doesn't have any property like signature. A search for
> 'signature' gives only pointers to digital signatures for encryption.
>
> Thanks for any help!
>
> Regards,
> Sena
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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