Reputation: 7644
I am looking to replace for "mailto:" that redirect users to their outlook account in browser and do new email with the email in the link.
mailto:
works for all users if they have set up default application outlook locally.
<a href="mailto:[email protected]">Send Email</a>
This opens the default email application to send new email to '[email protected]'
I want to use this specifically for office365 outlook mail users, so instead of using default app, I need something for example:
<a href="http://[email protected]">Send Email</a>
And when user clicks on 'Send Email' It should open the office365 outlook in browser and have new email to '[email protected]'
Is there any possible way to accomplish that?
Upvotes: 3
Views: 4175
Reputation: 21
as of 2023 the syntax is
https://outlook.office.com/mail/deeplink/[email protected]&subject=Customer%20Service%20Request&body=Add%20Your%20Request%20here
see How to mailto to office 365? as well
Upvotes: -1
Reputation: 862
Use the following url to launch email from the outlook online, you can modify the email address, subject, and email body.
https://outlook.office.com/owa/?path=/mail/action/compose&[email protected]&subject=Email%20Subject%20Here&body=some+content+goes+here
Link to compose outlook email:
https://outlook.office.com/owa/?path=/mail/action/compose
Pass parameters in URL based on your usecase:
&[email protected]
&subject=Email%20Subject%20Here
&body=some+content+goes+here
Upvotes: 6