Source: Microsoft Internal
Have you ever wanted to send e-mail notifications with the high importance flag set?
It's possible but you have to start your favorite XML editor 😉
Modifying Microsoft.SystemCenter.Notifications.Internal MP XML to Support Email Priority/Importance
- From the “Administration” space in the UI, export the Microsoft.SystemCenter.Notifications.Internal management pack.
- Open the management pack XML file in an XML or text editor.
- Search for the recipient name, typically in the format DOMAIN\username.
- Get the recipient ID from between the <RecipientID>…</RecipientID> tags.
- Find the subscription that contains this recipient ID.
- Find the <WriteAction> tag in this subscription.
- Get the type ID from the TypeID attribute in the <WriteAction> tag.
- Start at the beginning of the management pack XML.
- Find the write action module that matches the type ID.
- Find the </IsBodyHtml> end tag.
- Insert the following XML after the </IsBodyHtml> end tag: <Headers><Header><Name>X-MSMail-Priority</Name><Value>High</Value></Header></Headers>
- Save the file.
- Import the modified management pack XML, confirm to overwrite the existing one
Once the new management pack is active, recipients should see subsequent email messages from subscriptions that use the modified write action modules display the new priority attribute.
You can also support priority levels for non-MS clients using the X-Priority header with a numeric value, e.g. <Headers><Header><Name>X-Priority</Name><Value>5</Value></Header></Headers>.
This is tested this in our lab using the SP1 RC and RTM builds of SCOM 2007. The mail clients used for testing were Outlook 2003 and Outlook Express 6.
This sample is not supported under any Microsoft standard support program or service. This sample is provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of this sample and documentation
remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of this sample be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use this sample or documentation, even if Microsoft has been advised of the possibility of such damages.