All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Added
- Laravel 10 and 11 support
- Customizable job class for queueing
- Index on emails table to improve performance
- Added support for SQLite and PostgreSQL
Changed
- Email::compose() has changed. See UPGRADING.md
- Old email table is incompatible - new table will be created
Removed
- Support for Laravel 6, 7, 8 and 9
- Email encyption
Added
- ReplyTo feature
Changed
- Test package with PHP 8.3
Added
- Added support for Laravel 10 style mailables
Changed
- Added support for Laravel 10
Added
- Added support for Laravel 9 with new Symfony Mailer instead of SwiftMail.
Changed
- Dropped support for Laravel 5.6, 5.7 and 5.8.
Added
- Option to switch from auto-loaded migrations to manually published. Useful for using a multi tenant Laravel app (stancl/tenancy for example).
Fixed
- Before, when an email was queued using
queue()
it could still be sent using theemail:send
command, thus resulting in duplicate email sends. This has been fixed by adding aqueued_at
column.
Added
- Support for Laravel 7.x
- Queued option
Fixed
- Fixed inline attachments could not be stored
- Fixed PHP 7.4 issue when reading empty Mailable from address
Added
- Option to send e-mails immediately after calling send() or later()
Changed
- attach() and attachData() will no longer add empty or null files
Fixed
- Fixed regression bug (testing mode)
Added
- New environment variable
LARAVEL_DATABASE_EMAILS_TESTING_ENABLED
to indicate if testing mode is enabled (*)
Fixed
- Fixed issue where Mailables would not be read correctly
- Config file was not cachable (*)
(*) = To be able to cache the config file, change the 'testing' closure to the environment variable as per laravel-database-emails.php
config file.
Changed
- Changed package namespace
Removed
- Removed resend/retry option entirely
- Removed process time limit
Fixed
- Transforming an
Email
object to JSON would cause the encrpyted attributes to stay encrypted. This is now fixed.
Changed
- Updated README.md
Added
- Support for process time limit
Changed
- Updated README.md
- Deprecated
email:retry
, please useemail:resend
Added
- Support for a custom sender per e-mail.
Upgrade from 2.x to 3.x
3.0.0 added support for a custom sender per e-mail. To update please run the following command:
php artisan migrate
Added
- Support for multiple recipients, cc and bcc addresses.
- Support for mailables (*)
- Support for attachments
- New method
later
*= Only works for Laravel versions 5.5 and up because 5.5 finally introduced a method to read the mailable body.
Fixed
- Bug causing failed e-mails not to be resent
Upgrade from 1.x to 2.x Because 2.0.0 introduced support for attachments, the database needs to be updated. Simply run the following two commands after updating your dependencies and running composer update:
php artisan migrate
Fixed
- Created a small backwards compatibility fix for Laravel versions 5.4 and below.
Fixed
- Incorrect auto discovery namespace for Laravel 5.5
Changed
- Only dispatch
before.send
event during unit tests
Added
- PHPUnit tests
- Support for CC and BCC
Added
- Initial release of the package