No Signature (Outlook 2002)

G

Guest

Hello all.
I have a custom form that I use as a template for an email generated from an
Access DB. I add some attachments through code to a new MailItem based on the
template. I have contact info on the template and I DO NOT want to have the
users signature appended to the generated email. Can I stop the autosig. Is
there a way to set the "Tools+Options+Mail Format+Signature for new messages"
to <none> temporarily?
I am using Outlook 2002 SP3

Many thanks.
 
S

Sue Mosher [MVP-Outlook]

You have a couple of options:

1) Turn off automatic signatures for all custom forms (see http://www.outlookcode.com/d/ol2002problems.htm#sp3

-or-

2) In the code that you use to generate the message, set the Body or HTMLBody property to the desired text rather than loading it from the form.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

I think that hotfix is post SP3 and I am working in a corporate controlled
environment where I cannot apply this update to users machines.
Your second suggestion is good too but I have a nicely formatted template
that I use which would be difficult to reproduce through code.
Is there a way to set the "Tools+Options+Mail Format+Signature for new
messages
to be <none> through code?
 
S

Sue Mosher [MVP-Outlook]

The signature setting is in the registry and, like other Outlook settings, is probably read just once when Outlook starts. If you want to try setting it programmatically, the key is HKCU\Software\Microsoft\Office\10.0\Common\MailSettings. There are two REG_SZ (string) values -- NewSignature and ReplySignature. Set them to an empty string.

But I doubt that it will work.

I don't see why #2 would be difficult to reproduce. It's just HTML, right? Save it as an .htm file and load it into HTMLBody programmatically. Or does it have a lot of pictures (see http://www.outlookcode.com/d/htmlimg.htm)

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Hi Sue. I tried your registry suggestion and it works well. It seems these
settings are read everytime an email is created. I monitored the
'MailSettings' registry branch and tried turning on and off the New
Signature. What I saw was the Value was deleted when I set the Outlook option
to <None> and was recreated when the NewSignature was set to a signature from
the dropdown list.
I copied the RegOp class module from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba01/html/RegistryMadeEasy.asp
to read and write the registry entries in my project. Here is how my code
works:
- I save the value stored in the NewSignature value (if there is one) to a
string variable
- I delete the Value
- Create the email from the template and display it
- reset the NewSignature Value to the saved string variable.

Thanks again for all your help.
 
S

Sue Mosher [MVP-Outlook]

Great! I'm glad it turned out well, and thanks for the insight on the dynamic nature of the NewSignature values' operation.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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