-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allow Repeatable email fields to be used in the TO and Mail Headers for notifications #11
Comments
Hello @felipeelia Thanks |
I have an [email] field in my repeater and I needed to send a confirmation to each of those emails from Mail 2. If you have a similar situation, you can add the following code to your functions.php file
|
Thanks for sharing your solution @chloemccarty ! |
This is great! @chloemccarty can you share the JS to prevent the user from adding more than X number of repeater fields as well? |
Recently I had a similar scenario as @chloemccarty, where I need to send emails through Mail to multiple recipients. Also, I use repeatable [emails] field. Following the provided solution for Mail 2 and after modifying code to fit on the Mail form, I added the following code in the functions.php.
|
@HristinaJ @chloemccarty Any idea how to get this working in the additional headers (Bcc) rather than just the To field? |
@n-mitchell I think it can be achieved using $components['additional-headers'] instead of $components['recipient'], but haven't tested it.
|
@HristinaJ Thanks, got it working with this:
|
Are these solutions mentioned above still applicable to the latest version? |
No description provided.
The text was updated successfully, but these errors were encountered: