View Single Post
  #5  
Old June 26th 06, 01:35 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Including signature in email created with Add-In

The signature won't appear until you display the message, so you would need to use something more like:

myMail.Display
myMail.Body = TextBox1.Text & myMail.Body

Of course, if you want to preserve formatting in HTML and RTF messages, it gets a lot more complicated.

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

wrote in message oups.com...
Hi Ken,

I had originally thought that this worked, but I'm afraid it doesn't.

Whether I prepend or append like you suggested, I still end up with no
signature in the new mail. Is there anything I need to import to get
this to work?

e.g. even setting .body = .body produces an email without the
signature. However, when I don't set .Body to anything, the signature
will appear.

I'm running Windows XP SP 2, Visual Studio 2005 and Office 2003. Is it
possible I'm missing something obvious, or is what I'm trying just not
possible?

Thanks in advance.

Ads