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 7029817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:35:17+00:00 2026-05-28T00:35:17+00:00

I have currently written code to send an email in C# using the usual

  • 0

I have currently written code to send an email in C# using the usual SMTPClient and MailMessage objects.

My new requirement is that the email being sent should have “permissions” set as if the user was sending the email via Outloook and using the option from the ribbon toolbar. The permission to be set is the “Do Not Forward” option.

The option I wish to emulate when sending the email is accessed here;

"Do Not Forward" Option

Can anyone please supply some sample .Net code to achieve this or else provide me with a good code reference online?

Thanks in advance,
Brian.

  • 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-05-28T00:35:18+00:00Added an answer on May 28, 2026 at 12:35 am

    First of all, I am unaware as to how one might be able to set IRM (Information Rights Management) permissions using only a standard SMTP message (MailMessage). IRM permissions, I believe, are completely Outlook/Exchange-centric, and lack any sort of representation in the SMTP standard.

    The only way you’re going to be able to enable that permission is through the Outlook Object Model via the Outlook Interop assemblies. IamStalker above me recommended Redemption, which, while 99% of the time is the correct answer for everything Outlook-related, is not the way to go for this particular problem. Because IRM (as far as I know) has no representation in MAPI, Redemption wouldn’t be much help here; I don’t believe I’ve ever seen an IRM-related property on Redemption’s object model.

    You’ll most likely be interested in the Permission property exposed by the MailItem object type. It appears that in order to programmatically turn on the “Do Not Forward” option, you will want to set the value of that property to OlPermission.olDoNotForward.

    There is another IRM-related property (PermissionTemplateGuid), but it appears that you can leave this as an empty string since you are using a built-in “permission”.

    I would assume then that all other IRM-related settings are provided to Outlook through the user’s Outlook profile.

    Good luck!

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

Sidebar

Related Questions

I have written code that opens 16 figures at once. Currently, they all open
I have written some VSTO (2003) code that sucessfully applies some mandatory subject line
I have a requirement to send data from native program written in C through
I have an application (currently written in Python as we iron out the specifics
I have a Delphi .CPL currently written with Delphi 7 which needs to update
I have a daemon app written in C and is currently running with no
I have recently inherited a website written in Classic ASP, and am currently trying
I'm maintaining an in-house ORM written in C#, and it currently does not have
I'm using emacs and I have written a script which uses current-buffer. However the
I have currently an installed pgsql instance that is running on port 1486 .

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.