A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Attach digital Signature with code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 30th 08, 01:08 PM posted to microsoft.public.outlook.program_vba
andyoye
external usenet poster
 
Posts: 3
Default Attach digital Signature with code

I have a button on a win form that launches outlook and auto populates To:,
Subject:, Attachment:.... How can I attach digital signature so when users
click the button, it attaches their signatures.

Code Sample:

Outlook.Application outlookApp = new Outlook.Application();

Outlook.MailItem message =
(Outlook.MailItem)outlookApp.CreateItem(Outlook.Ol ItemType.olMailItem);

message.Subject = attachName;

message.To = msgTo;...............

Thanks




Ads
  #2  
Old July 30th 08, 02:29 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attach digital Signature with code

There's nothing in the Outlook object model that supports digital signing.
If the users have a command bar button or ribbon control for signing you
could call the Execute method on that control to sign but that's about it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"andyoye" wrote in message
...
I have a button on a win form that launches outlook and auto populates To:,
Subject:, Attachment:.... How can I attach digital signature so when
users click the button, it attaches their signatures.

Code Sample:

Outlook.Application outlookApp = new Outlook.Application();

Outlook.MailItem message =
(Outlook.MailItem)outlookApp.CreateItem(Outlook.Ol ItemType.olMailItem);

message.Subject = attachName;

message.To = msgTo;...............

Thanks





  #3  
Old July 31st 08, 03:35 PM posted to microsoft.public.outlook.program_vba
andyoye
external usenet poster
 
Posts: 3
Default Attach digital Signature with code

How can I can call execute method on them? We do have command bar
button/ribbon control.


"Ken Slovak - [MVP - Outlook]" wrote in message
...
There's nothing in the Outlook object model that supports digital signing.
If the users have a command bar button or ribbon control for signing you
could call the Execute method on that control to sign but that's about it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"andyoye" wrote in message
...
I have a button on a win form that launches outlook and auto populates
To:, Subject:, Attachment:.... How can I attach digital signature so
when users click the button, it attaches their signatures.

Code Sample:

Outlook.Application outlookApp = new Outlook.Application();

Outlook.MailItem message =
(Outlook.MailItem)outlookApp.CreateItem(Outlook.Ol ItemType.olMailItem);

message.Subject = attachName;

message.To = msgTo;...............

Thanks







  #4  
Old July 31st 08, 04:21 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attach digital Signature with code

You get that button (CommandBarButton) object, which has an Execute method.
You will need the ID for the CommandBarButton, to use with the Find method
to instantiate that button. You can use a tool such as OutlookSpy
(www.dimastr.com) to open an Inspector viewer on an open Inspector and then
go to the CommandBars tab to find your button ID. I believe there's also a
list of some ID's at www.outlookcode.com and sample code there to get ID's.
I don't use a signing certificate for my emails so I don't know that ID
myself.

For ribbon controls you would use the ribbon XML references to find the
idMso for that control in the type of Inspector you want to deal with (for
example mail compose) and once you have that you can use the
CommandBars.ExecuteMso method with the idMso to execute the ribbon control.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"andyoye" wrote in message
...
How can I can call execute method on them? We do have command bar
button/ribbon control.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Signature Certificate Andy Derbyshire Outlook - General Queries 1 January 11th 08 12:44 PM
Turn off Digital Signature woodsdarren Outlook and VBA 3 October 24th 07 03:00 PM
Digital Signature Warning Msg Rich in Yorktown Outlook and VBA 0 December 29th 06 12:42 PM
password digital signature Sam Outlook Express 2 June 8th 06 10:34 PM
Requesting a Digital Signature on a form ClarkJN Outlook - Using Forms 0 March 23rd 06 10:42 PM


All times are GMT +1. The time now is 03:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.