codiblenet / laravel-mail-reacher
Official Laravel mail transport for Mail Reacher.
Package info
github.com/CodibleNet/laravel-mail-reacher
pkg:composer/codiblenet/laravel-mail-reacher
Requires
- php: ^8.1
- codiblenet/mail-reacher-php: ^0.1
- illuminate/mail: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0 || ^13.0
- symfony/mailer: ^6.4 || ^7.0
Requires (Dev)
- guzzlehttp/psr7: ^2.6
- orchestra/testbench: ^8.0 || ^9.0 || ^10.0 || ^11.0
- phpunit/phpunit: ^10.5 || ^11.0
README
Official Laravel mail transport for Mail Reacher. It lets existing Mail, Mailable, notification and MailMessage flows send through Mail Reacher without rewriting application email code.
Installation
composer require codiblenet/laravel-mail-reacher
Publish config if needed:
php artisan vendor:publish --tag=mailreacher-config
Configuration
MAIL_MAILER=mailreacher MAILREACHER_API_KEY=mr_test_or_live_key MAIL_FROM_ADDRESS=noreply@example.com MAIL_FROM_NAME="Your App"
Add the mailer to config/mail.php if it is not already present:
'mailers' => [ 'mailreacher' => [ 'transport' => 'mailreacher', ], ],
That is intentionally the only Mail Reacher-specific environment knob for normal apps: the package sends to the official Mail Reacher API endpoint, and MAILREACHER_API_KEY selects the project environment/provider.
Existing Laravel Mail, Mailable, Notification and MailMessage flows keep working.
Example
use App\Mail\WelcomeMail; use Illuminate\Support\Facades\Mail; Mail::to('marie@example.com')->send(new WelcomeMail());
Publishing
This repository is intended to be published on Packagist as codiblenet/laravel-mail-reacher and versioned with GitHub releases/tags such as v0.1.0.
Testing
composer test