You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
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
The text was updated successfully, but these errors were encountered:
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."
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
The text was updated successfully, but these errors were encountered: