Support the ongoing development of Laravel.io →
Views Blade Mail
Last updated 1 year ago.
0

You should dd() the data before sending the mail, not in the actual mail.

If you want to debug how the mail looks, use something like MailHog or MailTrap. 🙂

axel-amghar liked this reply

1

You can use this option and may be will get some luck

https://laravel.com/docs/8.x/mail#previewing-mailables-in-the-...

axel-amghar liked this reply

1
Solution

When you use helper dd(), Laravel use in reality VarDumper package of Symfony. The package add some JavaScript and HTML incompatible with web mails. And in addition the dd() helper is die and dump (or dump and die) and is stop the code before mail sending.

If you use only dump() I think you go to have better result.

Solutions for using dd() :

  • Use dd() before send mail. (best for me)

or

debugbar views section

Sorry for my bad English.

Last updated 2 years ago.

hichxm, axel-amghar liked this reply

2

Sign in to participate in this thread!

Eventy

Your banner here too?

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.