Is it possible to make Outlook MailItem properties (e.g. To, CC, Body) readonly so that the user cannot edit them after the add-in populates the fields
Also, if the add-in inserts HTML into the body, is it possible to only allow the user to edit form fields in the HTML We are trying to build a system that allows you to submit structured form information via e-mail.
Thanks!
Josh

Outlook: Make mail properties readonly
ludmila
Two things:
1) You can cancel the Write event on a MailItem so that it does not write.
2) Why not use Word as the email editor, use a schema behind the mail template and use this as your structuring framework It is a superior way of doing things rather than using HTML workarounds.
It is helpful to remember that this forum is mainly for issues that directly pertain to the Visual Studio Tools for Office tools per se. So you will be best served by posing this question to a forum or newsgroup wholly dedicated to application-specific issues such as yours. Here is a link to resources that will help you:
http://blogs.msdn.com/johnrdurant/archive/2005/12/07/vsto_outlook_resourcelist.aspx
Take care,