So recently, I have been designing a website. Part of it requires a user to click a button, in which case opens up Outlook (the app) with the email filled in. However, those people who don't have Outlook (or any other mailing app) can't use this. So I am wondering if there is a way to open the same email using the online email apps (eg outlook.com)?
CodePudding user response:
If you're using mailto
event, it just opens the default email app. You could set the outlook webapp as default, although it's not very user friendly IMO:
- on outlook page, open console and run:
navigator.registerProtocolHandler("mailto","https://outlook.office365.com/mail/deeplink/compose/?mailtouri=%s","Outlook");
- click allow on popup
- mailto event should now prepopulate a new email on the outlook webapp