Outlook and Auto Signatures

S

Scott McBurney

We have customers that have the auto-signature feature turned on in Outlook,
so whenever they create a new message, their signature is automatically
added to it.

However, When our application programmatically creates an outlook email
message (by calling Application.CreateItem), no signature is automatically
added to the message. (currently tested under outlook 2000, haven't tested
under Outlook 2002 or 2003)

So....

1. Is it possible to programmatically create a message and have the auto
signature added?

or

2. Do we have to try and figure out which sigure is the default signature
and programmatically add it to the body of the message? If so, whats the
proper way to determine the default signature? (for all platforms)

Thanks,

Scott McBurney
Interface Software, Inc.
 
K

Ken Slovak - [MVP - Outlook]

AutoSignatures aren't added when you create an email using code.

You can find out the NewSignature (and ReplySignature) signature names
in the registry at (for Outlook 2002, others would vary)
HKCU\Software\Microsoft\Office\10.0\Common\MailSettings.

Insert, Signature, first entry on submenu is the default signature
(Outlook editor). If you get a handle to the CommandBar object
representing Signature you can get the first CommandBarControl in the
Signature.Controls collection and match the name to the result from
the registry. Using .Execute on that button will insert the signature.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top