Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailer To Field Twig No Longer working after update #325

Open
matthaltuch opened this issue Jul 31, 2024 · 0 comments
Open

Mailer To Field Twig No Longer working after update #325

matthaltuch opened this issue Jul 31, 2024 · 0 comments
Labels

Comments

@matthaltuch
Copy link

Description

Recently updated to the latest version of Sprout Email (from Craft 3 to Craft 4) and I have transaction emails that will no longer work with Twig in the mailer to field.

The example of what I have in the mailer to field that worked in Craft 3 is:
{% for authors in object.authors.all() %}{{ authors.email }}, {% endfor %}

This no longer populates anything into the to field so no transactional emails are being sent, if i hard code and email in this field emails are sent but the when trying to use any Twig loops in this field no longer works - the field still states that "This can use Twig Shortcut Syntax and reference Notification Event variables."

image

is there a different option for populating the To field based on the object variable data?

How to reproduce

Use a twig loop in the Mailer To field to dynamically pull in the recipient email address that should receive the email

Sprout Version

Sprout Email 4.45.0

Craft Version

Craft CMS 4.10.7

Database Type Version

MySQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant