You cannot send IRM mail programmatically in Outlook 2010. IRM mail is actually a regular email message with an encrypted attachment, and Outlook does not provide the correct API for creating an encrypted attachment and changing the type of mail.
The only way to do this from C # code is to use ActiveSync and send mail directly to Exchange. Unfortunately, with Exchange 2010, only licensed providers can use ActiveSync.
See http://www.microsoft.com/about/legal/en/us/intellectualproperty/iplicensing/programs/exchangeactivesyncprotocol.aspx for details.
In addition, if you go down the guid template configuration path, be aware that the DoNotForward template manual is hard-coded - if it really works (it is not tested and not supported, so you will vary by distance), then you need not worry about finding a template RMS
user1251108
source share