3 Replies - 9142 Views - Last Post: 17 May 2009 - 09:56 PM Rate Topic: -----

#1 RobinV  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 44
  • Joined: 21-May 08

Change Outlook email Signature

Post icon  Posted 19 March 2009 - 08:21 AM

Hello all,

I have to change the email signature in Outlook with C# code.
I know you can change the values in the Register. But I need to use the Microsoft API.

I got it working like this:
		   Outlook. oA = new Outlook.ItemsClass();
			oA.Application.
		   Word.Application W = new Word.Application();
		   Word.EmailOptions O;
		   O = W.Application.EmailOptions;
		   O.EmailSignature.NewMessageSignature = szSignName;
		   O.EmailSignature.ReplyMessageSignature = szSignName;



This works. but is evil. Since it kills outlook if its running at the same time and makes things slow etc.
Now I need to develop this as a Outlook plugin myself, so I doubt I would have to use the Word Api at all.
Who has any ideas? / Tips / Papers for me?

Thanks.
~Robin

Is This A Good Question/Topic? 1

Replies To: Change Outlook email Signature

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5667
  • View blog
  • Posts: 22,509
  • Joined: 23-August 08

Re: Change Outlook email Signature

Posted 19 March 2009 - 09:06 AM

http://www.outlookcode.com is the place to go.
Was This Post Helpful? 0
  • +
  • -

#3 RobinV  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 44
  • Joined: 21-May 08

Re: Change Outlook email Signature

Posted 20 March 2009 - 12:46 AM

Heh, I looked there ;)
I googled first, but as I couldnt find a decent Knowledge Base at that page I thought I'd ask here.

Cheers,
Robin
Was This Post Helpful? 0
  • +
  • -

#4 masteryee  Icon User is offline

  • D.I.C Regular

Reputation: 40
  • View blog
  • Posts: 271
  • Joined: 16-May 09

Re: Change Outlook email Signature

Posted 17 May 2009 - 09:56 PM

What line is killing Outlook? If you happen to be calling the Quit() method, it kills the outlook window.

And the Word API may be the only way to change the email signature.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1