PC Review


Reply
Thread Tools Rate Thread

Accessing Outlook 2003 Signature Programmatically using C#

 
 
Bachi
Guest
Posts: n/a
 
      15th Jul 2009
Accessing Outlook 2003 Signature Programmatically using C#
I am using Outlook Application Object to create a new mail


Thanks
Bhaskar

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      15th Jul 2009
Please provide details of what you're actually trying to do and explain
whether you're working with the built-in editor or Word editor or both.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Bachi" <(E-Mail Removed)> wrote in message
news:3D94785C-F205-47AC-8565-(E-Mail Removed)...
> Accessing Outlook 2003 Signature Programmatically using C#
> I am using Outlook Application Object to create a new mail
>
>
> Thanks
> Bhaskar
>



 
Reply With Quote
 
Bachi
Guest
Posts: n/a
 
      16th Jul 2009
Hi Mosher,

Actually i wrote a code in C# to generate a new mail message from outlook in
our application, and we are using the Word editor. when i click on the new
(new message) button from outlook i am able to see my signature.

But when i generate new message mail through code i am not able to get the
signature. i searched through msdn to get the properties and methods for
signature but i didnt get any revelant information.

Thanks
Bhaskar


"Sue Mosher [MVP]" wrote:

> Please provide details of what you're actually trying to do and explain
> whether you're working with the built-in editor or Word editor or both.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "Bachi" <(E-Mail Removed)> wrote in message
> news:3D94785C-F205-47AC-8565-(E-Mail Removed)...
> > Accessing Outlook 2003 Signature Programmatically using C#
> > I am using Outlook Application Object to create a new mail
> >
> >
> > Thanks
> > Bhaskar
> >

>
>
>

 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      16th Jul 2009
I still don't understand. Are you trying to add the signature to a message
or access the signature in an existing unsent message? Show the code that
creates or returns the message, please.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Bachi" <(E-Mail Removed)> wrote in message
news:01357F02-B052-4708-BADB-(E-Mail Removed)...
> Hi Mosher,
>
> Actually i wrote a code in C# to generate a new mail message from outlook
> in
> our application, and we are using the Word editor. when i click on the new
> (new message) button from outlook i am able to see my signature.
>
> But when i generate new message mail through code i am not able to get the
> signature. i searched through msdn to get the properties and methods for
> signature but i didnt get any revelant information.
>
> Thanks
> Bhaskar
>
>
> "Sue Mosher [MVP]" wrote:
>
>> Please provide details of what you're actually trying to do and explain
>> whether you're working with the built-in editor or Word editor or both.
>>
>> --
>> Sue Mosher, Outlook MVP
>> Author of Microsoft Outlook 2007 Programming:
>> Jumpstart for Power Users and Administrators
>> http://www.outlookcode.com/article.aspx?id=54
>>
>>
>> "Bachi" <(E-Mail Removed)> wrote in message
>> news:3D94785C-F205-47AC-8565-(E-Mail Removed)...
>> > Accessing Outlook 2003 Signature Programmatically using C#
>> > I am using Outlook Application Object to create a new mail
>> >
>> >
>> > Thanks
>> > Bhaskar
>> >

>>
>>
>>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      19th Aug 2009
Hi Sue,
I would like to ask you a question regarding accessing the signature in
outlook 2003.
Is is possible to deny users creating their own signature throug an add-in
or via exchange policy.
Is it also possible to disable using word editor and limiting the built-in
editor to limited number of characters? or do I need to write my own code to
take care of all this.
the reason for this is beause we want to unify signature and disclaimer for
all users and add them to thier new mail automatically.

thanks,
David
"Sue Mosher [MVP]" wrote:

> I still don't understand. Are you trying to add the signature to a message
> or access the signature in an existing unsent message? Show the code that
> creates or returns the message, please.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "Bachi" <(E-Mail Removed)> wrote in message
> news:01357F02-B052-4708-BADB-(E-Mail Removed)...
> > Hi Mosher,
> >
> > Actually i wrote a code in C# to generate a new mail message from outlook
> > in
> > our application, and we are using the Word editor. when i click on the new
> > (new message) button from outlook i am able to see my signature.
> >
> > But when i generate new message mail through code i am not able to get the
> > signature. i searched through msdn to get the properties and methods for
> > signature but i didnt get any revelant information.
> >
> > Thanks
> > Bhaskar
> >
> >
> > "Sue Mosher [MVP]" wrote:
> >
> >> Please provide details of what you're actually trying to do and explain
> >> whether you're working with the built-in editor or Word editor or both.
> >>
> >> --
> >> Sue Mosher, Outlook MVP
> >> Author of Microsoft Outlook 2007 Programming:
> >> Jumpstart for Power Users and Administrators
> >> http://www.outlookcode.com/article.aspx?id=54
> >>
> >>
> >> "Bachi" <(E-Mail Removed)> wrote in message
> >> news:3D94785C-F205-47AC-8565-(E-Mail Removed)...
> >> > Accessing Outlook 2003 Signature Programmatically using C#
> >> > I am using Outlook Application Object to create a new mail
> >> >
> >> >
> >> > Thanks
> >> > Bhaskar
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      20th Aug 2009
So your question is really how to control what signature the user employs,
right? There are three ways to make Outlook to use a particular signature
with all accounts:

1) Set the NewSignature and ReplySignature string values in the
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Common\MailSettings
key to the name of the signature stored in the
%appdata%\Microsoft\Signatures folder. This applies the signature as a
policy setting, so the user won't be able to change the automatic signature
(and may also be blocked from some other features on the Tools | Options |
Mail Format dialog).

2) Same as #1, only set the NewSignature and ReplySignature string values in
the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\MailSettings
key. This applies the setting as a user preference.

3) Use a script like that at
http://www.outlookcode.com/codedetail.aspx?id=821 to apply the signature to
each account. This is the brute force method, available if you can't apply
SP2 for some reason.

Note that even if you mandate a signature with a Group Policy Object, the
user can still delete the signature from the message itself, and the savvy
user can edit the .rtf, .htm, and .txt files for that signature. That's why
if you really want a mandatory signature, you must do it on the server; see
http://www.slipstick.com/addins/content_control.asp for links to tools.

GPO can also be used to set the Outlook editor as the only editor. Outlook
has no feature for limiting the number of characters in a message body.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Dave" <(E-Mail Removed)> wrote in message
news:6957AF07-62C6-4C8F-9582-(E-Mail Removed)...
> Hi Sue,
> I would like to ask you a question regarding accessing the signature in
> outlook 2003.
> Is is possible to deny users creating their own signature throug an add-in
> or via exchange policy.
> Is it also possible to disable using word editor and limiting the built-in
> editor to limited number of characters? or do I need to write my own code
> to
> take care of all this.
> the reason for this is beause we want to unify signature and disclaimer
> for
> all users and add them to thier new mail automatically.



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      24th Aug 2009
Thanks for your reply.
I am gonna try you suggestions en get get back to you if there are more
questions.

Thanks,
David

"Sue Mosher [MVP]" wrote:

> So your question is really how to control what signature the user employs,
> right? There are three ways to make Outlook to use a particular signature
> with all accounts:
>
> 1) Set the NewSignature and ReplySignature string values in the
> HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Common\MailSettings
> key to the name of the signature stored in the
> %appdata%\Microsoft\Signatures folder. This applies the signature as a
> policy setting, so the user won't be able to change the automatic signature
> (and may also be blocked from some other features on the Tools | Options |
> Mail Format dialog).
>
> 2) Same as #1, only set the NewSignature and ReplySignature string values in
> the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\MailSettings
> key. This applies the setting as a user preference.
>
> 3) Use a script like that at
> http://www.outlookcode.com/codedetail.aspx?id=821 to apply the signature to
> each account. This is the brute force method, available if you can't apply
> SP2 for some reason.
>
> Note that even if you mandate a signature with a Group Policy Object, the
> user can still delete the signature from the message itself, and the savvy
> user can edit the .rtf, .htm, and .txt files for that signature. That's why
> if you really want a mandatory signature, you must do it on the server; see
> http://www.slipstick.com/addins/content_control.asp for links to tools.
>
> GPO can also be used to set the Outlook editor as the only editor. Outlook
> has no feature for limiting the number of characters in a message body.
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:6957AF07-62C6-4C8F-9582-(E-Mail Removed)...
> > Hi Sue,
> > I would like to ask you a question regarding accessing the signature in
> > outlook 2003.
> > Is is possible to deny users creating their own signature throug an add-in
> > or via exchange policy.
> > Is it also possible to disable using word editor and limiting the built-in
> > editor to limited number of characters? or do I need to write my own code
> > to
> > take care of all this.
> > the reason for this is beause we want to unify signature and disclaimer
> > for
> > all users and add them to thier new mail automatically.

>
>
>

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically accessing Outlook properties Krutika Suchak Microsoft Outlook VBA Programming 3 12th Nov 2009 03:15 PM
Programmatically count # of Outlook Profiles w/o accessing registr N11689 Microsoft Outlook Interoperability 1 5th May 2009 02:01 PM
Programmatically Create an E-mail Signature on Outlook Startup GaryO Microsoft Outlook VBA Programming 3 17th Sep 2008 01:46 PM
How can I create signature programmatically in Outlook 2007 JK Microsoft Outlook Discussion 0 28th Apr 2008 06:07 PM
how do i programmatically set my signature in outlook =?Utf-8?B?YXV0b3JlcGx5Zm9yb3V0bG9vaw==?= Microsoft Outlook VBA Programming 1 6th Aug 2005 05:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 PM.