craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 170 forks source link

[4.x]: Environment variables for Status Email Address not populating #3019

Closed robzor closed 1 year ago

robzor commented 1 year ago

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

My Commerce General Settings panel: CleanShot 2022-11-03 at 9 10 33

Craft Email Settings panel: CleanShot 2022-11-03 at 9 12 04

Steps to reproduce

  1. Set an email address in your .env file.
  2. Add that variable to your Craft Email settings panel
  3. 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."

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

-

lukeholder commented 1 year ago

Can you confirm that $SYSTEM_EMAIL_ADDRESS exists in the environment the email is being sent in?

robzor commented 1 year ago

Oh god, I've messed up here haven't I? Sorry! Can we delete this issue so that I can hide my shame? :D