Skip to content

Enhance Env in Variable Selectors for Notifications - for default setup to support singular System Email vs both Split System Email plus Admin Email #2666

@Mathew-WD

Description

@Mathew-WD

What are you trying to do?

I am trying to set up default Forms and Notifications with frictionless change as needed.

Given Authenticated Sending Domains I almost always have a sending address from the domain of the site.
I'm seeing more real world cases where the site sending address must be different to the admin inbox(Sometimes a completely different domain or mail service).

Currently I use this to cover Sites that use singular System Email (reception@example.com)

Craft and Formie have this working fine, it makes sense when you set it up and revisit it in craftadmin. Admins understand it (as there are blue boxes around [System Email] which reenforces intent and validity.

What I am trying to do is introduce a new ENV variable and allow seamless switch back or forwards between:

  1. Singular System Email (reception@example.com)
  • System Email in ENV (SYSTEM_EMAIL="reception@example.com") single point of change
  • Admin Email in ENV ADMIN_EMAIL="${SYSTEM_EMAIL}" single point of change default inherited from system
  • $SYSTEM_EMAIL in Settings > Email > System email
  • User notification is From: System Email using Variable Pickers (reception@example.com)
  • Admin Notification is From: system email using Variable Pickers (reception@example.com)
  • Admin Notification is To: $ADMIN_EMAIL (reception@example.com)
  1. Sites that use both System Email (noreply@example.com) and an Admin Inbox (admin@example.com)

This all technically works but feels a ENV handling feels a little less supported leading to confused admins
See proposed solution.

What's your proposed solution?

Maybe I am missing something do you have any ideas?

or

Formie support ENV selections in variable selectors
and display in Craft Admin with a blue box. To re-enforce the support of this feature.
This should lead to less confusion all round.

or

See if Craft are willing to support this separation in email settings by adding a n Admin_Email field that can support ENVs.
Formie can use it like System Email.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions