Laravel handle incoming emails in your application

Catch incoming emails in your Laravel application via laravel-mailbox package for Laravel 5.7 and up that will allow your application to catch and react to incoming emails from different services like Mailgun, SendGrid or the local log driver for debugging purposes.

to listen incoming email messages in a Laravel-Route like fashion and react to them.

Mailbox::from('', function (InboundEmail $email) {
	$subject = $email->subject();


accessing email attributes and content

Mailbox::from('{username}', function (InboundEmail $email, $username){
    $subject = $email->subject();
    $email->reply(new ReplyMailable);


Leave a Comment