aradianoff / recaptchacontact

reCaptcha Contact Plugin for Grav CMS (getgrav.org)
MIT License
8 stars 11 forks source link

Replaced \n with <br> #46

Open rapkosi opened 6 years ago

rapkosi commented 6 years ago

I don't know if it really is an issue or if it is intended. In the sendEmail() process, you used the new line tags \n. What I experienced was that that it doesn't make a new line but rather Name: ... Email: ... and Message: ... was written in one line on Outlook and Gmail (didn't try different ones).

My suspicion was that the content of the email isn't handled as text but as html, so the email client does not detect the new line tag. I replaced all new line tags with <br> in the plugin php file and resent an email through the contact form and it suddenly worked, I had new lines for each part.

Just wanted to let you know.