I've tried using the code shown at http://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html to send form responses to more than one email address at a time, based on the selections made from a set of checkboxes, but it is only sending to the last selected email in the list.
I am using parts a, b, and c of the code in the CFV5 section.
Any ideas?
Thanks, Peter
Hi Peter,
I believe that the CFv5 mailer in the latest releases will handle a list of email addresses. What do you see in the Email To when you add a Debugger action to the On Submit event.
Bob
Hi Peter,
Sorry, CFv4 was my typo :-( Now fixed.
There's only one address making it into email_to_use so something isn't working in your Custom Code. What do you have there?
Bob
Hi Peter,
But that code will only return one email address. I thought that you wanted several?
Bob
Hi Bob,
The details at https://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html say that you can use a select box element, so I assumed that this meant that it would work to several selections at once.
Is there a way of getting the form to use check boxes to allow the form to be sent to all of the email addresses selected?
Thanks, Peter
Hi Peter,
Yes, you'll need to edit the PHP to return a comma separated list of addresses.
Bob
Thanks Bob,
all sorted...
Peter