Home > Mobile >  Is there a way to send email from browser?
Is there a way to send email from browser?

Time:10-08

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:

  1. on outlook page, open console and run: navigator.registerProtocolHandler("mailto","https://outlook.office365.com/mail/deeplink/compose/?mailtouri=%s","Outlook");
  2. click allow on popup
  3. mailto event should now prepopulate a new email on the outlook webapp
  • Related