Support the ongoing development of Laravel.io →
posted 10 years ago
Blade Mail
Last updated 2 years ago.
0

You must be using double quotes, and you use \r\n to make a new line.

Example:

"Something\r\nOn\r\nA\r\nNew\r\nLine"
Last updated 2 years ago.
0

That doesn't work ... it simply adds "\r\n" into the output

Last updated 2 years ago.
0

The issue turned out to be that if only sending text, one must explicitly pass an array to the Mail::(send/queue) call as follows:

Mail::send(array('text' => $text_view), ...

If you:

Mail::send($text_view, ...

The message is assumed to be HTML

Last updated 2 years ago.
0

\r\n this works for me. thanks.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

MacWorks macworks Joined 6 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.