I'm having a problem sending a plain text (not HTML!) email, all my line breaks are being ignored:
plain text
HTML
->setBody('Did you request a password reset for your account? If yes, click here: http://www.website.com', 'text/plain');
The above is being displayed in the email as:
Did you request a password reset for your account? If yes, click here: http://www.website.com
I've checked and the header is apparently set correctly:
Content-Type: text/plain; charset=utf-8
Does anyone have any experience with this?
use double quotes like this
->setBody("Did you request a password reset for your account? If yes, click here: http://www.website.com", 'text/plain');
1.4m articles
1.4m replys
5 comments
57.0k users