How to mailto to office 365?

href, html, office365, outlook-web-app

Solution

Office 365 now supports composing an email using a URL:

https://outlook.office.com/?path=/mail/action/compose&to=service@domain.com&subject=Customer Service Request&body=Add+Your+Request+here

available parameters:

- path /mail/action/compose

- subject Customer Service Request

- body Add your request here

- to service@domain.com

- cc is not supported at this point.

See https://blogs.msdn.microsoft.com/carloshm/2016/01/16/how-to-compose-a-new-message-or-event-and-populate-fields-in-office365/#comment-1645 for more details

Problem

How to `mailto` to office 365 like this one on the gmail - Open Gmail on mailto: action. I have this link: https://outlook.office365.com/owa/#viewmodel=IMailComposeViewModelFactory but I have no idea for recipient parameter to put in the `TO`. Please help guys. Here's how it do it in Gmail: ``` <a href="https://mail.google.com/mail/?view=cm&fs=1&to=email@domain.com">sample@domain.com</a> ``` Now here's what i do in Office 365 but i dont know what is the right parameter for the Recipient: ``` <a href="https://pod51038.outlook.com/owa/#viewmodel=IMailComposeViewModelFactory">sample@domain.com</a> ```

Original source

Related problems