Programmatically sending encrypted mail from Outlook 2002

R

Rob Miles

Hi,

I am trying to programmatically send an encrypted mail from Outlook using
VB6. I can successfully send encrypted mail manually from Outlook, but I
cannot make this work through the Outlook object model.
I have followed the instructions here:
http://support.microsoft.com/?kbid=279013#kb2
but when calling the CommandBarButton.Execute method, the State property
remains at the value 0 (msoButtonUp) and when the mail is sent it is not
encrypted.
I am at a loss as to why this is not working, I cannot seem to set the State
property directly, and am not sure of any other way to programmatically tick
the checkbox for 'Encrypt message and attachments'.
Apologies if this is not the correct newsgroup for this question.

Thanks in advance,

Rob Miles
 

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