Commerce does not seem to be honouring the .env variable for SYSTEM_EMAIL_ADDRESS on notifications. This appears to be a new error in Commerce as it was working previously.
Failed email job:
My Commerce General Settings panel:
Craft Email Settings panel:
Steps to reproduce
Set an email address in your .env file.
Add that variable to your Craft Email settings panel
Trigger a Commerce notification email
Expected behavior
The email is sent
Actual behavior
The email is not sent and the job fails with the error "Email "$SYSTEM_EMAIL_ADDRESS" does not comply with addr-spec of RFC 2822."
What happened?
Description
Commerce does not seem to be honouring the .env variable for SYSTEM_EMAIL_ADDRESS on notifications. This appears to be a new error in Commerce as it was working previously.
Failed email job:![CleanShot 2022-11-03 at 9 07 52](https://user-images.githubusercontent.com/704032/199683365-91867702-2c24-4bca-8cb1-21b478be07b9.png)
My Commerce General Settings panel:![CleanShot 2022-11-03 at 9 10 33](https://user-images.githubusercontent.com/704032/199683554-b9f4932b-679c-4432-a34f-a568528be26e.png)
Craft Email Settings panel:![CleanShot 2022-11-03 at 9 12 04](https://user-images.githubusercontent.com/704032/199683718-39bd6b49-fbc8-4312-b84f-849f2b83f6f8.png)
Steps to reproduce
Expected behavior
The email is sent
Actual behavior
The email is not sent and the job fails with the error "Email "$SYSTEM_EMAIL_ADDRESS" does not comply with addr-spec of RFC 2822."
Craft CMS version
4.3.1
Craft Commerce version
4.2.1
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-