solspace / craft-express-forms

Express Forms for Craft: Intuitive and lightweight form builder that gets the job done but doesn’t get in your way.
https://docs.solspace.com/craft/express-forms/v2/
Other
13 stars 4 forks source link

Email settings not getting read through env vars #52

Closed thisisjamessmith closed 3 years ago

thisisjamessmith commented 3 years ago

Description

Similar to this issue, I get the same error in Express Forms when my Craft system email address is defined via an environment variable:

Address in mailbox given [$SYSTEM_EMAIL] does not comply with RFC 2822, 3.6.2. [] []

Changing to use the same email address but hardcoded instead fixes the issue.

Steps to reproduce

  1. Create an env var in .env called $SYSTEM_EMAIL and then add that as the system email address in Craft's email settings.
  2. Trigger an Express Forms submission with a notification email set up.

Additional info