How to determine if message will be encrypted on Send

Status
Not open for further replies.
S

sf0

I'm trying to remove certain UserProperties when messages are sent. All

is well unless Outlook cancels the Send event when it has problems

encrypting (see Outlook's message further below). In that case, the

user has 2 options: "Send Unencrypted" or "Cancel". My problem is I

cannot determine which option the user selected.

The significance of these options is as follows: if the user selects

"Cancel", the UserProperties which were removed in MailItem_Send must

be restored (I have a solution for this in the Activate event); if the

user selects "Send Unencrypted", I don't want to do anything.

The only indication I have that the user has opted to "Send

Unencrypted" is the 2003 Word editor throws an error when I attempt to

access the currentItem.UserProperties. No error is thrown in 2003

default editor or 2007.

Is there a way to determine which button the user clicked?

Alternatively, is there a way to determine if Outlook intends to

encrypt the message or not? Or should I remove these UserProperties

somewhere other than MailItem_Send?

FYI, I don't have access to Redemption or any other 3rd party

software.

Outlook's message:

Microsoft Outlook had problems encrypting this message because the

following recipients had missing or invalid certificates, or

conflicting or

unsupported encryption capabilities...

Thank you in advance for your help!

sf0
 
S

sf0

Alternatively, is there a way to validate the certificates of the sender

and recipients? If so, I could cancel the MailItem_Send event and not

have to worry about restoring my currentItem to it's pre-send State.

sf0;321656 Wrote:
> I'm trying to remove certain UserProperties when messages are sent. All
> is well unless Outlook cancels the Send event when it has problems
> encrypting (see Outlook's message further below). In that case, the
> user has 2 options: "Send Unencrypted" or "Cancel". My problem is I
> cannot determine which option the user selected.

> The significance of these options is as follows: if the user selects
> "Cancel", the UserProperties which were removed in MailItem_Send must
> be restored (I have a solution for this in the Activate event); if the
> user selects "Send Unencrypted", I don't want to do anything.

> The only indication I have that the user has opted to "Send
> Unencrypted" is the 2003 Word editor throws an error when I attempt to
> access the currentItem.UserProperties. No error is thrown in 2003
> default editor or 2007.

> Is there a way to determine which button the user clicked?
> Alternatively, is there a way to determine if Outlook intends to
> encrypt the message or not? Or should I remove these UserProperties
> somewhere other than MailItem_Send?

> FYI, I don't have access to Redemption or any other 3rd party
> software.

> Outlook's message:
> Microsoft Outlook had problems encrypting this message because the
> following recipients had missing or invalid certificates, or
> conflicting or
> unsupported encryption capabilities...

> Thank you in advance for your help!


sf0
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
oliv- determine to which address an email has been sent Outlook VBA and Custom Forms 3
M How can I determine which user read an email Exchange Server Administration 4
A Rules - how to determine if all conditions in rule are true or false Outlook VBA and Custom Forms 5
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
T How to determine when I switch from mail to calendar etc. Using Outlook 9
A account hacked, need software to determine what emails have been sent Using Outlook 1
J VBA code to determine 'show' state of SearchBar Using Outlook 7
L Outlook Meeting Response: determine when a meeting response has been edited Using Outlook 1
M RDO: using TypeOf to determine [OOM] Class Outlook VBA and Custom Forms 1
T Can I determine if an item is in a shared calendar? Outlook VBA and Custom Forms 5
T How to determine if email address resides in Exchange w/o OutlookSecurity prompts? Outlook VBA and Custom Forms 1
A Links in email getting error message about group policy Using Outlook 4
O How to find and replace a word in Outlook-Agenda-Subject and Message? Using Outlook 0
X Open Hyperlinks in an Outlook Email Message (Help with Diane's solution) Outlook VBA and Custom Forms 3
Commodore Unable to move message Using Outlook 3
Y Disable Microsoft Outlook Test Message Using Outlook 5
S Unable to change Message Class Outlook VBA and Custom Forms 0
S Changing Message Class Outlook VBA and Custom Forms 4
Cathy Rhone Mail merge error message Using Outlook 2
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
G Send a greeting message to a contact on birthday Outlook VBA and Custom Forms 5
B Inconsistent handling of message read/unread status by Outlook Using Outlook 3
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 12
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
O Outlook 2010 Add delete button to the side of the message list Using Outlook 1
Cathy Rhone The properties of the message have been changed Using Outlook 1
S Outlook 2016 A Shortcut to recall and delete and sent message. Using Outlook 1
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
S Unable to extract text from an Outlook email message Using Outlook 2
R Outlook 2016 Message-ID oddity/inconsistency? Using Outlook 7
J Implement Keywords based on body message Outlook VBA and Custom Forms 0
C must select message to trigger safe list Using Outlook 3
witzker HowTo Change message Class of contact form Outlook VBA and Custom Forms 0
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
W September 2020 - No Default Email Client message after Office Update Using Outlook 1
A Flag Message for Follow Up after sending Outlook VBA and Custom Forms 1
S Outlook (2016 32bit; Gmail IMAP) - Save sent message to Outllook Folder Outlook VBA and Custom Forms 0
C Why won't Title display in message list? Using Outlook 1
icacream content in this message could not be downloaded.... Using Outlook 2
J Outlook 2016 After a search in all mailboxes, where is each message that was found? Using Outlook 6
R Warn before sending message Outlook VBA and Custom Forms 4
T Column to display which email alias a message was sent to Outlook VBA and Custom Forms 6
V Change start time based on message duration Outlook VBA and Custom Forms 2
J Message search and edit, another way? Outlook VBA and Custom Forms 4
N VBA to delete duplicates by message-id on common pst for 2 or more emails Outlook VBA and Custom Forms 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
M VBA to auto forward message with new subject and body text Outlook VBA and Custom Forms 8
T Missing text in e-mail message after "(Please keep confidential)" Using Outlook 3
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0

Similar threads

Top