Outlook fails to encrypt e-mail

G

Guest

(also posted in microsoft.public.office.developer.outlook.vba)

Hi.

I have an add-in that shall decide whether an e-mail shall be signed and/or
encrypted or not. The add-in decides this when the Send button is pressed and
uses the Outlook Security Settings to specify signature/encryption (By
finding the encrypt/sign buttons and (un)setting them).

If the add-in specifies both signature and encryption for an e-mail with an
attachment the e-mail is only signed! E-mails without attachments are both
signed and encrypted.
If I set encryption and signature in the e-mail Security Settings the
e-mails with attachments are also encrypted.

Does anybody know whether I need to handle e-mails with attachments
different from e-mails without or is this maybe an error in Outlook?

Regards
Ingrid
 
G

Guest

After some more "research" I found out that the problem is that I use the
Execute call for the pointers to the encrypt and sign button and only the
last call seems to work.

I find the pointers through the _InspectorPtr. Is there a restriction that
says that you can only execute one button?

Ingrid
 

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