Skip to content

Use ENV Variables in email notification recipients #2676

@justinholtweb

Description

@justinholtweb

Describe the bug

It would be really great to be able to use ENV variables in email notification recipients when using the setting in the notifications admin. We have different recipients needed for each environment and frequently migrate databases downstream, which ends up overwriting "hard-coded" addresses in this area.

Steps to reproduce

  1. Create an email notification for a form
  2. Try to add a ENV variable (common patterns like $ENV_VARIABLE or { ENV_VARIABLE } don'r parse)

Form settings

  • Multi-page form: Yes or No
  • Submission Method: Ajax or Page Reload
  • Client-side Validation: Yes or No
  • Custom Form Templates: Yes or No

Craft CMS version

Craft Pro 5.8.21

Plugin version

3.1.6

Multi-site?

No

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions