Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:17:26+00:00 2026-06-13T23:17:26+00:00

I have added a custom New Secure Mail button to my Outlook add in.

  • 0

I have added a custom “New Secure Mail” button to my Outlook add in. When the user clicks the button, I want the new mail dialog to appear, and I want to handle the send button click event so that I can perform some additional actions and potentially cancel the send.

There are plenty of examples here of how to open the new mial dialog from an external application using Microsoft.Office.Interop.Outlook.MailItem but what is the correct approach for doing this within an Outlook add in?

Thanks for any help,
Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:17:27+00:00Added an answer on June 13, 2026 at 11:17 pm

    I managed to solve this with the following code in my button click event.

    using Outlook = Microsoft.Office.Interop.Outlook;
    
    Outlook.MailItem mail = Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olMailItem);
    mail.UserProperties.Add("IsSecure", Outlook.OlUserPropertyType.olYesNo);
    mail.Display();
    

    I subscribe to send clicked events and check each time if the MailItem contains the UserProperty “IsSecure”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list within Sharepoint, using a custom new form I have added
I'm trying to add new columns in Magento's Products Ordered report. I have added
I am new to magento. I have added two text fileds(custom options) for products
I have added a custom field to user profiles in bbPress however I am
I want to add one new custom field to one page checkout in Magento.
I have added custom level in log4javascript. Using below code, log4javascript.Level[strLevelName] = new log4javascript.Level(nLevelValue,
I have an activity with 2 fragments. I have added custom animations for fragment
In one of the iPad Application, I am working I have added custom views
I have added a custom action to the CustomList type. For testing purposes I
I have a default ListView that i have added my custom views for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.