PDA

View Full Version : Send unencrypted emails.



rAmAnA
07-23-2013, 09:12 AM
Hi, The office outlook that we have in our office by default sends encrypted mails. However, for achieving a particular functionality I need to send mails to my inbox(Mail to Self) and I want them to be unencrypted so that I can read the subject of those mails(If mails are encrypted VBA code shows an error). So plz help me to send unencrypted mails through VBA code. I have tried using Inspector object and it can be used to send encrypted mails(incase default setting is unencrypted) but how to unencrypt if default setting is encrypted. Any leads would be helpful.

skatonni
07-26-2013, 04:00 PM
This describes how to encrypt http://support.microsoft.com/kb/2636465

You could try setting Item.PropertyAccessor.SetProperty PR_SECURITY_FLAGS to 0 or -4 as suggested by others but if that may no longer work.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/49d3b4c0-6cf9-44a4-bdbc-a3125a46b446/getpropertyprsecurityflags-returns-65532-on-mailitem-why-this-value

http://blogs.msdn.com/b/dvespa/archive/2009/03/16/how-to-sign-or-encrypt-a-message-programmatically-from-oom.aspx

The concensus appears to be, you can set encryption but not remove.

rAmAnA
07-27-2013, 09:35 AM
Hi skatonni,
thanx for the info but I am interested in sending unencrypted mails since the default setting sends encrypted mails.