Allow office.js Outlook add-ins to open a new compose email form
Our use case is to display email addresses for contacts in a user's CRM (other colleagues of the sender, for example), and those addresses be hyperlinks to open a new email in the active Outlook with the "TO:" field pre-populated with that address.

4 comments
-
Hendrik Liebau commented
This is now supported in version 1.6 with displayNewMessageForm (see https://dev.office.com/reference/add-ins/outlook/1.6/Office.context.mailbox#displaynewmessageformparameters).
-
Anonymous commented
any update on this?
-
Curtis commented
I noticed that the API does provide a "Office.context.mailbox.displayNewMessageForm" method, however it appears to be undocumented at this time. Perhaps it is just a placeholder, as I can't seem to get it to work. I had tried to pass in a 'To' with no success:
I.E. Office.context.mailbox.displayNewMessageForm( {to : ["user@domain.com"] });
-
Joseph Whitley commented
I don't quite understand why this wasn't implemented before displayNewAppointmentForm was. My company's add-in is having trouble with new messages, and this would solve the issue entirely.