Yii Mailer 6.1
Yii Mailer version 6.1.0 was released. In this version:
- Add debug collector
- Explicitly import classes, functions, and constants in "use" section
- Remove unnecessary files from Composer package
- Add PHP 8.5 support
Yii Mailer version 6.1.0 was released. In this version:
Major versions of Yii Mailer and Yii Mailer Symfony Mailer packages were tagged.
The Yii Mailer abstraction for sending emails has been significantly reworked.
Now, the package yiisoft/mailer is independent of any other dependencies and essentially consists of two interfaces: MessageInterface (a message with methods for setting/getting values) and MailerInterface (a service for sending messages with two methods: send() and sendMultiple()).
Minor version of Yii Mailer Library was tagged. There are some improvements and fixes:
MessageFactory;^8.1;yiisoft/view version to ^10.0.Major version of Yii 2 Symfony mailer extension package was tagged.
In this version:
Major version of Yii Mailer Symfony Mailer package was tagged.
In this version configuration group names adapted to Yii conventions.
Minor version of Yii Mailer Symfony Mailer package was tagged. In this version, we raised the minimum version of PHP to ^8.0 and yiisoft/mailer to ^5.0, and explicitly added transitive dependencies psr/event-dispatcher and symfony/mime.
We are very pleased to announce the release of Symfony mailer extension version 2.0.3.
This version removed "final" modifier from Mailer and Message classes. While finalizing classes has its benefits, Yii2 is not ready for it unlike Yii3.
Details are available in CHANGELOG.
We are very pleased to announce the release of Symfony mailer extension version 2.0.2.
This version fixes a number of bugs found since first release. Details are available in CHANGELOG.
We are very pleased to announce the release of Symfony mailer extension version 2.0.0.
Since Swiftmailer is not supported anymore, we encourage everyone to switch to new mailer adapter:
Symfony Mailer adapter for yiisoft/mailer was tagged stable.
It is relying on symfony/mailer to send emails and is recommended as replacement for now deprecated SwiftMailer.
As usual, it has 100% unit test coverage with 100% mutation score, and 100% type coverage checked with Psalm.
Mailer package version 3.0.0 was tagged. This version expands Yiisoft\Mailer\MessageInterface adding the following methods:
getDate() - Returns the date when the message was sent, or null if it was not set.withDate() - Returns a new instance with the specified date when the message was sent.getPriority() - Returns the priority of this message.withPriority() - Returns a new instance with the specified priority of this message.First releases of mailer package and its SwiftMailer adapter were released.
The mailer package provides the content composition functionality, and a basic interface for sending emails. Actual mail sending is provided by separate interchangeable packages.
The following code can be used to send an email: