Copy link to clipboard
Copied
I have a submit button on one of my forms that includes text in the body of the email that opens. How do I include a space in between each line. Currently I have the below. Also, is there a way to BOLD a certain line in the body of the email? Thanks in advance.
"Attached is a form regarding your board certification status. Our records indicate you are not currently certified, though you may have been eligible for an exam.\n" +
"Please complete the attached form and submit it within 5 business days to comply with local medical staff bylaws. In order for the form to function properly, you will need to download the form from the server and save it locally, then open it in Adobe Reader to complete and submit.\n" +
"Thank you for your attention to this matter. If you have any questions, please feel free to reach out.";
Copy link to clipboard
Copied
Both \n and \r should work. You have to double them up to get a space between lines like this: "End of line\r\r" OR "End of line\n\n" There is not way to bold the email message as it is in plain text only.
Copy link to clipboard
Copied
Hi @Kathleen5D64,
Thanks for raising this. You’re absolutely right that paragraph spacing in the email body can be tricky when using a Submit button with a mailto: action in a PDF.
When Acrobat generates an email body via mailto:, it’s sending plain text. However, some email clients (like Outlook or Apple Mail) interpret line breaks (\n) as paragraph breaks, which can add extra space between lines, especially if your email app is set to display messages in rich text or HTML mode.
Let's try the following:
If you’re using a script to set the email body (e.g., in a button with JavaScript), try using \r for line breaks — it’s sometimes better respected as a single break:
https://adobe.ly/3SAKOdj.submitForm({
cURL: "mailto:someone@example.com?subject=Form Submission&body=Hello,%0D%0AThis is line two.",
bEmpty: true,
bPDF: false
});
Use %0D%0A (which equals carriage return + line feed) for new lines in mailto: URLs.
When adding multi-line text to the mailto: URL, keep it compact and avoid adding double line breaks unless absolutely needed.
Wait for more input from experts, in the community
~Tariq
Copy link to clipboard
Copied
Thank you for your quick response. Replacing the \n with \r unfortunately, did not do the trick.
Copy link to clipboard
Copied
Both \n and \r should work. You have to double them up to get a space between lines like this: "End of line\r\r" OR "End of line\n\n" There is not way to bold the email message as it is in plain text only.
Copy link to clipboard
Copied
Post above has been edited.
Copy link to clipboard
Copied
That worked. Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now