nuewire/mail
Nuewire Mail
Mail driver settings for Laravel and Livewire.
Install
composer require nuewire/mail
php artisan optimize:clear
Component
<livewire:nuewire-mail />
With nuewire/platform 2, the page appears under Settings → Configuration → Email at /admin/settings/email.
Drivers
- SMTP
- Sendmail
- Amazon SES
- Mailgun
- Postmark
- Resend
- Log
- Array
Storage
Settings are encrypted at:
storage/app/private/.nuewire/emails.json
Usage
The selected mailer becomes Laravel's default when the option is enabled.
Mail::to('user@example.com')->send(new InvoiceReady());
Use the package mailer explicitly:
Mail::mailer('nuewire')->to('user@example.com')->send(new InvoiceReady());
The initial driver is log.
Access
The component requires authentication by default.
NUEWIRE_MAIL_GATE=manage-email-settings
Publish
php artisan vendor:publish --tag=nuewire-mail-config
php artisan vendor:publish --tag=nuewire-mail-views
php artisan vendor:publish --tag=nuewire-mail-translations
Config path:
config/nuewire/mail.php
Restart queue or Octane workers after changing drivers.
Related Packages
apavliukov/laravel-email-smtp-validation
Validate email address via SMTP to check if it really exists
32,546
1
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.4.0 | ^8.2 | ^11.0| | MIT | |
| 1.3.1 | ^8.2 | ^11.0| | MIT | |
| 1.3.0 | ^8.2 | ^11.0| | MIT | |
| 1.1.0 | ^8.2 | ^11.0| | MIT | |
| 1.0.3 | ^8.2 | ^11.0| | MIT | |
| 1.0.2 | ^8.2 | ^11.0| | MIT | |
| 1.0.1 | ^8.2 | ^11.0| | MIT | |
| 1.0.0 | ^8.2 | ^11.0| | MIT |