How do I get mailto links in iOS (safari) to open the Outlook app?

99封情书 提交于 2019-12-24 00:54:15

问题


I've noticed that on iPhone users who are using the Outlook app and do not have the native mail app configured, that when they click on mailto links it prompts them to create a new email account in iOS, instead of opening the Outlook app.

Is there anyway to have Outlook set as the default for mailto links on the iPhone?


回答1:


Instead of 'mailto:' protocol you can use below protocol to open outlook app

ms-outlook://compose?to=joe@example.com&subject=Hello




回答2:


iOS doesn't currently support changing the default apps used for composing email and the like.




回答3:


Duplicate, Already solved here: https://stackoverflow.com/a/33812714/1360730

To test try typing

ms-outlook://compose?to=a@a.com&subject=aaaa in the address bar on safari and see whether the outlook app opens up.

So your href would look something like,

<a href="ms-outlook://compose?to=a@a.com&subject=aaaa"/>



来源:https://stackoverflow.com/questions/30106599/how-do-i-get-mailto-links-in-ios-safari-to-open-the-outlook-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!