Whenever I try to add a simple mailto link, all devices except iOS work fine.
Based on Apple iPhone Documentation it should work as such:
<a href="mailto:[email protected]">John Frank</a>
But I made a new post on a WordPress site that contains the URL exactly as such and when tapping it on iPhone (iPhone 7 simulator and real iPhone 6) it just gives an error:
When specifying a mailto URL, you must provide the target email address. The following examples show strings formatted for Safari and for native apps. You can also include a subject field, a message, and multiple recipients in the To, Cc, and Bcc fields. (In iOS, the from attribute is ignored.)
If mailto links don't open for you the way they should, a quick look at the system or browser settings should do the job. In Windows, head to Settings -> Apps -> Default apps. Scroll down and pick “Choose default apps by protocol” from the menu. For 'Mailto', choose the client of your choice.
If you are still having issues with the links, clearing website data will improve Safari performance and this may also fic this issue. On your device, go to Settings > Safari > Clear History and Website. You will need to confirm again by tapping Clear History and Data.
Open Control Panel > Default Programs, Associate a file type or protocol with a program: Sort 'Current Default' column and find MAILTO: Click 'Change program...' and select Outlook: Now Outlook will open mailto links as it used to before installing Chrome browser.
Use a real device, not the simulator. Mail and phone apps are not installed on the simulator, so you can't use them.
From Mail Links in the Apple URL Scheme Reference:
iOS Note: If the Mail app is not installed, clicking a mailto URL displays an appropriate warning message to the user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With