I am using a webform to send an email. The webform contains a textarea field.
I have noticed that if I enter a paragraph of text in the textarea field, then that same text is split into multiple lines in the email I receive.
So rather than being a single line of text which is wrapped within the email, it looks like the paragraph is split into separate lines (as shown in following image):
This is puzzling since if I check the body of the email using hook_mail_alter()
the paragraph appears as a single line of text:
I can’t work out why this is occurring. I am not sure if this is something that webform is doing or if it is something being done by the mail server itself (could it be something to do with plain text email protocal perhaps?). Was hoping someone would be able to enlighten me on the likely cause of this issue and how to solve it?
Sponsored by SupremePR