Mailto url encoding issue iOS 14.6

Hi there,

Since I upgraded to iOS 14.6 I have noticed that mailto urls no longer format line breaks correctly in default iOS mail application

eg: mailto:john@xxcom?subject=test&body=name%0D%0Aemail

Result in iOS 14.6 mail app (body)

name<BR>email

Result in previous iOS versions mail app (body)

name

email

Is there any work around or solution to this issue?

Dear Apple. Either update following documentation (remove conformance to RFC2368) https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MailLinks/MailLinks.html#//apple_ref/doc/uid/TP40007899-CH4-SW1 or fix this annoying bug.

10

As a temporary fix, I added a <html>%0D%0A at the start of the body portion of the email and a %0D%0A%</html> at the end. Unfortunately, the tags show as text in the body, but everything is on its own line.

...body=<html>%0D%0ALine1%0D%0ALine2%0D%0ALine3%0D%0A</html> shows up as:

<html>

Line1

Line2

Line3

</html>

I don't like the <html> and </html> showing up, but at least the body is once again readable.

12

I submitted a report on this via Feedback Assistant yesterday. It got closed fairly fast:

  • Recent Similar Reports: Less than 10
  • Resolution: Investigation Complete - Works as currently designed

Very frustrating. But maybe it would help if everyone affected could submit their own feedback ticket and bump up that "recent similar reports" count until someone at Apple decides to take a second look.

Here's what I submitted via Feedback Assistant:

  • Title: mailto URL scheme no longer supports line breaks
  • Area: Mail
  • Type: Incorrect/Unexpected Behavior

Mail 14.6 no longer supports mailto URLs containing the “%0D%0A” character sequence to specify a line break in the message body. Instead of a line break, this sequence gets converted to literal text “<BR>” in the message body. For apps that use specific formatting in mailto-generated messages to drive back-end business logic, this is a disastrous regression.

This bug is in the Apple Mail app, not in the OS handling of mailto URLs. If you change your default mail app to (for example) Outlook or Gmail, then the “%0D%0A” sequence is still handled correctly.

This affects a lot of apps. Please see this Apple Developer Forum thread for discussion of the impact: https://developer.apple.com/forums/thread/681023

In that forum thread, note the response from “Frameworks Engineer ” who seems to fundamentally misunderstand the issue. Please ensure that this issue is understood as breakage of previously correct behavior. “Support for rich content…has been removed” does not explain the new behavior that inserts the unexpected text “<BR>” into the specified message.

Yes, this is a massive headache for us. Effectively plain text emails generated by mailto that have (encoded) line breaks are now presented by IOS 14.6+ as one contiguous block of text littered with (lt)BR(gt) and also phrases within beginning with https:// are no longer presented as clickable. Apple - you are significantly impacting other companies value to their end users where business models are around generating and sending light-weight emails to their users. You need to address this ASAP.

How can Apple make such blunders the credibility is going down the drain and I am not sure anyone from apple development watching this thread it has been more than a couple of months and no fix yet, this is pretty bad with Apple this is impacting multiple processes we have for different applications.

I submitted a feedback also today.

am also facing this issue. initially found issue in iOS 14.6 on my iPad. After upgrading to 14.7.1 issue still exists. Please help me if anyone have workaround on this.

yes, I face the same problem I tried to find the corresponding answer for two days but nothing is working apple should give us the answer how can we do it. for new line.

Dear Apple, please undo this change and conform to RFC standards. I don't understand how this is a security improvement. Thank you.

I had to create a login in this Forum just to join this thread. Seriously, this has to be considered a bug rather than a "feature". I'm very sure that thousands of apps use pre-filled t mailto urls using line breaks. If you're going to change all the standards on how you'll accept url linking from now on, at least take your time to document it or offer a workaround for developers that depend on it, now we're all with our hands tied scraping hopelessly at this thread for workarounds.

Just made an account to say the same thing. Please, please, please Apple, this needs to be fixed. This is clearly a bug that's causing a lot more harm than it's theoretically trying to prevent and this thread is proof of it. Unbelievable.

Hey Guys, it seems it has been solved. I have received this email from Apple. I did not check yet though and I cannot check this morning. Try on your side ;-)

Thanks  @Scott J for having prepared the feedback. United we stand !..


Hi Mike,

As a result of your feedback, there are software changes in the latest update, build 19A5318f, that have resolved this issue. You can see the software build your device is running and check for the latest update by tapping on Settings > General > Software Update.

Has this issue been resolved after installing the latest update? If not, please file a new feedback report.

Feedback ID FB9383355, mailto URL scheme no longer supports line breaks

Do not reply to this email. 

iOS 15 does remove the BR codes on the iPhone.

Hi.. In UK. Using iPhone 7. Can't upgrade to iOS15

If anyone else is struggling, my work around is to use the Outlook Mail App as default Mail. Works as it should do.

Mailto url encoding issue iOS 14.6
 
 
Q