More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

share code 02-Sep-2010 22:33

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

Code level: intermediate    Code area: Outlook Form Design Printer Friendly Version
Title: Launch custom form message with default signature
Description: A common problem with custom message forms is that they don't automatically add the user's default signature. At a suggestion from Dmitry Streblechenko, author of Outlook Spy and Redemption, I put together this code to launch a custom message form with Items.Add, then launch a normal message and copy the signature. This example works if the default message format is HTML and has been tested only on Outlook 2002. Your mileage may vary. Usage: Call StartNewCustomMsgWithSig("IPM.Note.yourcustomclass")
Date: 05-Sep-2003  03:05
Code level: intermediate
Code area: Outlook Form Design
Posted by: Sue Mosher
Body:
All 52comments
Page [ 1 2 3 4 5 6 Next >>  
  06-Jan-2004  18:00   
This is great!

If your signature contains any graphics though it will not work properly, as the graphics files will not be attached to the custom form.
  06-Jan-2004  19:53   
Embedding graphics requires CDO -- see http://www.slipstick.com/dev/code/htmlimg.htm . I haven't tried it with this application, mainly because I personaly detest images in signatures.
  07-Jan-2004  02:57   
You and me both! Unfortunately I have a customer that doesn't feel the same way and I have had to set up a company wide signature block (business card) that contains graphics (embedded, not linked). They also use customised forms and would like there new signature to be included in those forms. I usually use redemption to embed graqphics in emails (code based on the htmlimg example) but I cannot seem to work out how to do this with a signature? I have resorted to creating personalised .ofts based on custom forms after manually inserting the signature but would love to get this working without having to do this - do you know if this is possible?
  07-Jan-2004  07:44   
No, I don't know if it's possible. I would try creating the message using the technique above, then fiddle with the HTML code to embed the graphic.
  07-Jan-2004  21:51   
Had another look at it but still can't figure it out, I'm going to stick with the template option... it is only one customer that has this problem at the moment, so the template fix will have to do! Thanks for your input.
  26-Jan-2004  21:47   
Can someone give me a hand here....I am not sure how to call this. I see the usage at the top but can not get it work. It looks like what I require so I am keen to give it a go.

Thanks
  27-Jan-2004  19:13   
strMessageClass is the name of the published Outlook message form, e.g. IPM.Note.MyForm, with which you want to create a new message that also includes th user's default signature:

    Call StartNewCustomMsgWithSig("IPM.Note.MyForm")
  09-Feb-2004  11:05   
I've tried using this code with OL2000...No success...The HTMLBody and Body property are always empty.

Is there any workaround for OL2000?? Any ideas would be great...

Thanks
  09-Feb-2004  14:07   
Ian, if you display objSigMail, does it show the signature?
  10-Feb-2004  08:43   
Yes, It is does...but when I look at the properties with debugger...eg: HTMLBody and Body they are both empty....

However, when I call the Inspector and then look at HTMLBody and Body they both contain the signature...perhaps this needs to be called first!!
Page [ 1 2 3 4 5 6 Next >>  
Post your comment



name        email