bombenprodukt / laravel-mailbox
A package to intercept and process incoming emails within your Laravel application.
Requires
- php: ^8.2
- basecodeoy/laravel-manager: ^0.0.1
- basecodeoy/laravel-package-powerpack: ^0.0.1
- illuminate/container: ^11.0
- illuminate/contracts: ^11.0
- illuminate/database: ^11.0
- illuminate/log: ^11.0
- illuminate/routing: ^11.0
- illuminate/support: ^11.0
- nesbot/carbon: ^2.68
- symfony/mailer: ^6.3
- willdurand/email-reply-parser: ^2.10
- zbateson/mail-mime-parser: ^2.4
Requires (Dev)
- basecodeoy/php-cs-fixer-config: ^0.0.1
- ergebnis/composer-normalize: ^2.2
- friendsofphp/php-cs-fixer: ^3.15
- infection/infection: ^0.27.0
- nunomaduro/collision: ^7.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- pestphp/pest-plugin-watch: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.5
- spatie/laravel-ray: ^1.2
- spatie/pest-plugin-snapshots: ^2.0
README
This project was created by, and is maintained by Brian Faust, and is a package to intercept and process incoming emails within your Laravel application.. Be sure to browse through the changelog, code of conduct, contribution guidelines, license, and security policy.
Warning This package is still in development and should not be used in production.
Installation
Note This package requires PHP 8.2 or later, and it supports Laravel 10 or later.
To get the latest version, simply require the project using Composer:
$ composer require basecodeoy/laravel-mailbox
You can publish the configuration file by using:
$ php artisan vendor:publish --tag="laravel-mailbox-config"
Usage
Please review the contents of our test suite for detailed usage examples.
Drivers
Note The
+
indicates that the driver is tested with a fixture.
Warning The
!
indicates that the driver is not yet tested with a fixture.
! [Amazon SES](https://aws.amazon.com/ses/) + [Brevo](https://brevo.com) ! [MailCare](https://mailcare.io) ! [MailerSend](https://mailersend.com) + [Mailgun](https://mailgun.com) + [Mailjet](https://mailjet.com) + [Mandrill](https://mandrill.com) + [Postmark](https://postmark.com) + [SendGrid](https://sendgrid.com) + [SparkPost](https://sparkpost.com)
BeyondCode Mailbox
This package is heavily inspired by Laravel Mailbox by BeyondCode, but it aims to be more flexible, extensible, and less opinionated. The main difference is that this package does not provide any filtering or routing out of the box; instead, it provides a simple interface to build your own. This package also does not offer any UI or database migrations.
The intended usage of this package is to listen for the BaseCodeOy\Mailbox\Event\MailReceived
event and then process the incoming email using your logic. This approach allows you to create your filtering system and to use your database models, preventing you from being forced into using a specific architecture or database structure.
Additionally, you can configure multiple connections for each driver and use them simultaneously. This capability allows you to use multiple email providers at the same time. For example, you could use Mailgun for your transactional emails and SparkPost for your marketing emails.