Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DivDax's avatar
Level 10

Send raw text mail without using a view in Laravel 5.3

Hey,

it is possible to send a mail with a string as body without using a blade view?

0 likes
6 replies
cent040's avatar

You can simple send a raw text email like

Mail::raw('Text to e-mail', function ($message) {
   $message->to('[email protected]');
});

If you want to send queue the email

Mail::queue('emails.welcome', $data, function ($message) {
    //
});`

if you want to send later in 5 minute

Mail::later(5, 'emails.welcome', $data, function ($message) {
    //
});

Regards, Arfan

1 like
Mr. Oleg K's avatar

now, is it possible to queue email without a view?

bashy's avatar

It's via Mailables now. You can do it in the class.

Please or to participate in this conversation.