0

I am trying to open mailto link in new tab which will automatically compose mail with dynamic data. It's work completely fine with other mail client except "Inbox by Gmail". Could you please help me with this.

mailto:x@y.com?body=FirstLine \r\n Second Line \r\n Third Line 
Rahul2790
  • 23
  • 1
  • 7

2 Answers2

0

Check that your UrlEncode method really translates newlines into "%0a". Here's an example of a 2-line email body:

https://mail.google.com/mail/?view=cm&ui=2&tf=0&fs=1&to=WHOEVER%40COMPANY.COM&su=SUBJECTHERE&body=LINE1%0aLINE2

mrid
  • 5,782
  • 5
  • 28
  • 71
0

Please check with this,

Insert a line break in mailto body

I had tried this and it is working, I think it is work for you.

Community
  • 1
  • 1
Kamlesh
  • 654
  • 8
  • 21