Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailto links in iOS not working

Tags:

ios

iphone

mailto

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:

enter image description here

like image 264
Ryan Novotny Avatar asked Feb 20 '17 13:02

Ryan Novotny


People also ask

Does mailto work on iOS?

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.)

Why are mailto links not working?

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.

Why are links not working on my iPhone?

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.

How do I fix mailto links?

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.


1 Answers

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.

like image 75
Josh Buchea Avatar answered Sep 20 '22 03:09

Josh Buchea