Author Topic: line breaks in mailto link  (Read 9068 times)

DWalker

  • Newbie
  • *
  • Posts: 1
line breaks in mailto link
« on: October 27, 2014, 07:46:42 pm »
I have a web app that uses a mailto link to build an email and open the mail client. To create the body section of the link I have used the javascript encodeURIComponent function to ensure spaces and so on are correct, including line breaks. However,the line breaks are not recognized by AM, and in fact display the text %0A%0D. I have tried variations on this inluding %0A and %0D individually. I have also tried "\n", "\r" and "\n\r" with no encoding. Those last ones don't display anything but don't trigger line breaks either. Below is an example of the link data.

mailto:nobody@nowhere.ca?cc=somebody@somewhere.ca&subject=Special%20Deal%20Approval%20Required&body=---------------Details---------------%0A%0DDate%20%3A0ct%2023%2C%202014%0A%0DFor%20%3A%20Some%20Customer%20Name%0A%0DNo.%20%3A%20CUS-999999%0A%0DDescription%3A%2025%20bags%20at%205%25trueff%20plus%201%20case%of%20boost%20at%2010%25%off%0A%0DWho%3A%20Me%0A%0DWhen%3A%20Tomorrow%0A%0D-------------------------------------%0A%0D%0A%0DPlease%confirm%20your%20approval%of%20this%deal%20at%20your%20earliest%convenience.%0A%0DRegards%2C%0A%0DMy%20Name%0A%0D

Any idea what I'm doing wrong?

This is AM 1.5.0.19 on Android 4.4.2 (samsung galaxy tab 4).

***************************************************
Follow up - this appears to be BROWSER related of all things. Using Chrome to invoke the link causes the behavior noted above. Using Firefox, however, triggers the creation of the email exactly as I would expect - line breaks and spacing are all perfect - in AM and in the default mail client.


« Last Edit: October 28, 2014, 12:17:51 am by DWalker »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: line breaks in mailto link
« Reply #1 on: October 29, 2014, 12:36:32 am »
Oh, so I don't have to do anything after all? Best kind of bug report, thanks!
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/