Removing Active Content from E-Mails Sent via Outlook Forms

The Outlook forms alternative

Sometimes creating Outlook forms is a good alternative to developing Outlook add-ons. They can run scripts written in VBScript, an old fashioned language, but powerful enough. Another benefit of creating Outlook forms is that they do not need to be installed as extra software. Outlook forms can be deployed and shared on a Microsoft Exchange Server or as a file.

One problem that arises when you use Outlook forms as a template for e-mails is that if they contain scripting, the script is attached to the e-mail as a winmail.dat file. When the recipient opens the e-mail he will see the message “The item contain active content that cannot be displayed in the Reading Pane. Open the item to read its contents.”. This is annoying since users may suspect active content of being malicious and they can’t preview it.

This is a quick step by step example to create a new Outlook form to use as an e-mail template and remove the script in the send event. We set the UseTNEF MAPI property to false to achieve this result.

Creating the Outlook Form Template

  1. Enable the developer options
  2. Click “New/Choose Form”
  3. Select “Message” from the “Standard Forms Library”
  4. Write the content of your e-mail template
  5. Go to the developer option or ribbon under Outlook 2007/2010 and click on “Design This Form”
  6. Click on “View Code”
  7. Click on “Script/Event Handler…” option
  8. Select the “Send” event
  9. Add the following code to remove the script
Function Item_Send()

   MsgBox "Item being sent without a winmail.dat file attached"
   Item.PropertyAccessor.SetProperty "http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8582000B", False

End Function
  1. Close the script editor
  2. Click on “Publish/Publish Form As” and choose a name to be stored in the “Personal Forms Library”
  3. It is saved now

Using the Outlook Form Template

  1. Click “New/Choose From”
  2. Go to the “Personal Forms Library” and select your created form
  3. Complete the e-mail
  4. Press “Send”

Voilà! The e-mail is sent without active content.

Related Services

  1. Outlook Plugin Development
  2. Reverse Engineering
  • Tej

    HI
    I have tried implementing the above solution but without success. I still get the Active content message. Could you help please.

  • johnjohn

    With the normal lifetime cover increasing steadily you will find there’s growing target maintaining a new youthful visual appeal. The time frame for most of this focus will be your body’s skin color. Skin will be the largest organ on the body along with requires extensive care. dailyhealthtrends
    A accredited health coach is mostly more skilled and better acknowledged as a professional inside overall wellness industry. certifiedhealthcoach
    Good Center pertaining to Disease Command (CDC), tooth decay is just about the most widespread chronic infectious ailments among Oughout. S. young children. This is often a preventable health issue that will begin early. childrensoralhealthohio

  • johnjohn

    Knowing exactly what a financial coordinator does is an excellent start to your healthy, professional relationship using your planner. Within this brief content, we check out what a new planner will perform that may help you achieve your current financial ambitions. ehealthplanners
    If you happen to be thinking diy, than you’ll need to be thinking cork floor coverings. Learn precisely why cork floors must be next on the list if you upgrade your own home. ecohomeimprovements
    When constructing a new household, adding while on an extension or maybe just a fairly easy remodel as part of your home, it is wise to consider any local environment to optimize the efficiency of the aspect of your respective project. homeimprovementhut

  • johnjohn

    Your house improvement undertaking could actually benefit anyone, the house owner, and the rest of the household by simply increasing the standard of everyday existing; and provides for recoup on the was expended at secondhand. islandhomeimprovement
    Before anyone tackle any diy project, you’ll want to look with the design aspects involved so as to determine which option to take using your project. elementshomeimprovements
    Anyone aiming to sell their residence in forex is almost certainly nervous precisely long it can take. Here can be a few ideas to make certain your property sells prior to house across town. moorehomeimprovement

  • johnjohn

    In your recent prior, home advancement service have been quite going up with a lot of people coming approximately start selling diy products and also these solutions. remodelinghomeimprovements

  • ayeshakhan

    A very awesome blog post. We are really grateful for your blog post. You
    will find a lot of approaches after visiting your post. I was exactly
    searching for. Thanks for such post and please keep it up. Great work…..
    rebelmouse.com