Alexander Olekhnovich

Hi all,
I'm developing an MS Outlook Add-in with VSTO (VB.NET). I've to change an email address before sending it, but here is a problem that the field "to" is ReadOnly. So I've to turn off the email address verification or change that field in BeforeCheckNames() somehow. Any ideas
Best Regards
Alexander Olekhnovich


Re: Visual Studio Tools for Office Change Outlook email address "to" in BeforeCheckNames()

Christin-MSFT

Alexander -

I found this thread and I wonder if you were able to solve the problem One idea is to essentially cancel the message and use the Forward feature to redirect the message.






Re: Visual Studio Tools for Office Change Outlook email address "to" in BeforeCheckNames()

Sue Mosher - Outlook MVP

A better solution would be to save the item and then use the Recipients collection to perform the necessary modifications.



Re: Visual Studio Tools for Office Change Outlook email address "to" in BeforeCheckNames()

Christin-MSFT

Yeah, Sue's idea is better.