Accessing Outlook 2003 Signature Programmatically using C#

Status
Not open for further replies.
B

Bachi

Accessing Outlook 2003 Signature Programmatically using C#

I am using Outlook Application Object to create a new mail

Thanks

Bhaskar
 
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

"Bachi" <Bachi> wrote in message

news:3D94785C-F205-47AC-8565-B4C68C05C4B5@microsoft.com...
> Accessing Outlook 2003 Signature Programmatically using C#
> I am using Outlook Application Object to create a new mail

> Thanks
> Bhaskar
>
 
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
> > >

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


>
 
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

"Bachi" <Bachi> wrote in message

news:01357F02-B052-4708-BADB-35CEFAEF64C0@microsoft.com...
> 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
> > >> >> >
>
>> "Bachi" <Bachi> wrote in message
> > news:3D94785C-F205-47AC-8565-B4C68C05C4B5@microsoft.com...
> > > Accessing Outlook 2003 Signature Programmatically using C#
> > > I am using Outlook Application Object to create a new mail
> >>> > Thanks
> > > Bhaskar
> > >

>

>
>>
 
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
> > >

> "Bachi" <Bachi> wrote in message
> news:01357F02-B052-4708-BADB-35CEFAEF64C0@microsoft.com...
> > 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
> >> > >> > >> > >
> >
> >> "Bachi" <Bachi> wrote in message
> >> news:3D94785C-F205-47AC-8565-B4C68C05C4B5@microsoft.com...
> >> > Accessing Outlook 2003 Signature Programmatically using C#
> >> > I am using Outlook Application Object to create a new mail
> >> >> >> > Thanks
> >> > Bhaskar
> >> >
> >
> >>


>
 
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

"Dave" <Dave> wrote in message

news:6957AF07-62C6-4C8F-9582-07B1C759226E@microsoft.com...
> 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 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
> > >

> "Dave" <Dave> wrote in message
> news:6957AF07-62C6-4C8F-9582-07B1C759226E@microsoft.com...
> > 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.


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Accessing ALL Outlook contact fields Outlook VBA and Custom Forms 3
RBLampert Accessing Outlook accounts from multiple computers Using Outlook 8
E Accessing shared outlook folder doesn't work since switch to new outlook/excel Outlook VBA and Custom Forms 11
S Outlook [Online - Office365] perfomance is getting affected when accessing the mails using Redemptio Using Outlook 1
J Accessing Hotmail accounts with Outlook 2016 Using Outlook 3
n2b Accessing Plain Text Draft Without Outlook Using Outlook 3
G Issues with accessing Outlook Contact Picture with VBA Outlook VBA and Custom Forms 4
P accessing custom task pane with Outlook ActiveInspector Using Outlook 1
mikecox Accessing Outlook on my Win7 desktop from Win8 laptop Using Outlook 1
S Programmatically accessing Outlook Calendar data Using Outlook 1
H Accessing a control on a frame in Outlook with VBScript Outlook VBA and Custom Forms 1
K Programmatically accessing Outlook properties Outlook VBA and Custom Forms 3
A Accessing .pst folder in outlook using VBA Code Outlook VBA and Custom Forms 4
J Outlook closes when accessing History in BCM BCM (Business Contact Manager) 4
L Outlook Forms-Accessing Outlook VBA and Custom Forms 1
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
V Outlook custom form - installing and accessing Outlook VBA and Custom Forms 1
S Problem Accessing .MSG Property 'ImageNaturalHeight' Tag '0x80010003' Outlook VBA and Custom Forms 1
J Accessing calendar items for Resource Mailboxes Outlook VBA and Custom Forms 2
M Accessing ExpiryTime property Outlook VBA and Custom Forms 1
M Accessing BCM with Excel / Running Reports BCM (Business Contact Manager) 1
C Problem accessing events for folder "username" Server Threw Exception Using Outlook 1
A "Unable to display the folder" error when accessing Group mailbox Using Outlook 0
Commodore Accessing mail from multiple devices Using Outlook 1
E Accessing User Defined Fields in BCM Database part 2 BCM (Business Contact Manager) 0
E [SOLVED] Accessing User Defined Fields in BCM Database part 1 BCM (Business Contact Manager) 9
R Accessing folder 'Other Contacts' Outlook VBA and Custom Forms 1
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
D Accessing Global Address List details with VBA Outlook VBA and Custom Forms 1
K assistant accessing from her home computer BCM (Business Contact Manager) 2
C Accessing _RecipientControl1 (Assigned To) Outlook VBA and Custom Forms 2
A Daily hours of recurring/ multi-day appts, & accessing mult calend Outlook VBA and Custom Forms 2
R New users creating get page cannot be displayed when accessing OWA Exchange Server Administration 16
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
D Delete Outlook emails from MS server Using Outlook 9
B Outlook tasks and PDF Using Outlook 4
D Outlook 2019 is no longer asking for password ... Using Outlook 5
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
L Outlook attachments from OneDrive as links Using Outlook 0

Similar threads

Back
Top