Antonella's avatar

Test Laravel 8x: mail reception

Is it possible to test receiving an email with Laravel?

or can I use only mock mail tests?

I haven't found much about the documentation, just this: https://laravel.com/docs/8.x/mocking#mail-fake

0 likes
4 replies
Sinnbeck's avatar

Why would you want to receive emails inside laravel? Laravel isn't made to receive emails

Antonella's avatar

I explained myself wrong. I would like to send an email with Laravel and verify that it has arrived. Also Check the content sent @sinnbeck

Antonella's avatar

what is possible to do with Laravel 8x and what is not possible to do with what I said above? @sinnbeck

Sinnbeck's avatar

I don't think there is a good way to test sending a real email. As in a feature or unit test.

But do you mean you want to send a test mail and see how it looks in a mail client? Then use mailhog or mail trap

Please or to participate in this conversation.