I have a form, which works perfectly for a single email recipient. The emails are provided from a 'Select Box' element. That element was defined as "input_select_4" as a multi-choice field:
[email]abc123@gmail.com[/email]=TEST - Joe Blow
[email]xyz123@gmail.com[/email]=TEST - Pam Johns
[email]hhh456@gmail.com[/email]=TEST - Bob Smith
The email configuration is using the dynamic tab, because we need to have the user selections fill in the values. The dynamic to = input_select_4
When you choose more than one in the form, there is an error 'You must provide at least one recipient email address'. When turning on the debug, it shows this row as past of the array:
[input_select_4] => [email]xyz123@gmail.com[/email],abc123@gmail.com
It appears the problem is that this field, when only a single choice, works correctly and sends the email as designed. But when you choose 2, the system cannot properly parse the multiple emails separated by a comma.
One other thing to mention, is that I removed The dynamic to = input_select_4 to blank, and manually typed in [email]xyz123@gmail.com[/email],abc123@gmail.com on the static tab. This works fine.
Any help would be greatly appreciated.
Chris...
[email]abc123@gmail.com[/email]=TEST - Joe Blow
[email]xyz123@gmail.com[/email]=TEST - Pam Johns
[email]hhh456@gmail.com[/email]=TEST - Bob Smith
The email configuration is using the dynamic tab, because we need to have the user selections fill in the values. The dynamic to = input_select_4
When you choose more than one in the form, there is an error 'You must provide at least one recipient email address'. When turning on the debug, it shows this row as past of the array:
[input_select_4] => [email]xyz123@gmail.com[/email],abc123@gmail.com
It appears the problem is that this field, when only a single choice, works correctly and sends the email as designed. But when you choose 2, the system cannot properly parse the multiple emails separated by a comma.
One other thing to mention, is that I removed The dynamic to = input_select_4 to blank, and manually typed in [email]xyz123@gmail.com[/email],abc123@gmail.com on the static tab. This works fine.
Any help would be greatly appreciated.
Chris...
First, thank you for the post. I have looked through the example, and its not quite what the sample problem
In the referenced solve, the requirement was for any single selection, to have 2 emails go out. Your example, the list is a single select list.
<select name="quote_location">
<option value="claremont">Claremont</option>
<option value="hobart">Hobart</Hobart>
<option value="howrah">Howrah</option>
<option value="kingston">Kingston</option>
<option value="lindisfarne">Lindisfarne</option>
<option value="moonah">Moonah</option>
</select>
My requirement is similar but different. The list for starters is a multi select list. The second difference is that for each selected choice, it would send only a single email out.
Chris...
In the referenced solve, the requirement was for any single selection, to have 2 emails go out. Your example, the list is a single select list.
<select name="quote_location">
<option value="claremont">Claremont</option>
<option value="hobart">Hobart</Hobart>
<option value="howrah">Howrah</option>
<option value="kingston">Kingston</option>
<option value="lindisfarne">Lindisfarne</option>
<option value="moonah">Moonah</option>
</select>
My requirement is similar but different. The list for starters is a multi select list. The second difference is that for each selected choice, it would send only a single email out.
Chris...
Hi nca4bh,
Bob
The second difference is that for each selected choice, it would send only a single email out.
Please explain this to me? If there are four selections made you want to send out four different emails?Bob
Bob,
Sorry for being obscure.
Yes the ultimate drop-down will have 20-30 choices for a user. They can choose one item, or many items (ctrl+click). Since each item is a name of an email recipient, I need one email to go to each of the people chosen.
Does that make sense?
Chris...
Sorry for being obscure.
Yes the ultimate drop-down will have 20-30 choices for a user. They can choose one item, or many items (ctrl+click). Since each item is a name of an email recipient, I need one email to go to each of the people chosen.
Does that make sense?
Chris...
Hi Chris,
I still haven't got it :-(
Is this one identical email going to many people? In which case you need one email action and a long list of To addresses.
Or, is it a different email to each person? In which case you either need to drag in a lot of Email actions or hand-code the email sending.
Bob
I still haven't got it :-(
Is this one identical email going to many people? In which case you need one email action and a long list of To addresses.
Or, is it a different email to each person? In which case you either need to drag in a lot of Email actions or hand-code the email sending.
Bob
Bob,
For example, the drop-down shows:
Bob Jones
Sam Snead
Arnold Palmer
Jack Nicklaus
Behind each of those names should be a unique email to their personal email accounts.
If I chose Bob Jones, a single email would go to [email]bjones@gmail.com[/email]. If I chose Bob Jones and Arnold Palmer, 2 emails would go out, one to [email]bjones@gmail.com[/email] and one to [email]apalmer@pga.com[/email]. If I chose all 4, then 4 emails would go out, etc.
Our requirement is that the body text and the subject (being dynamic from the form as well) need to be the same on every email it produces.
Does this get it?
Chris...
For example, the drop-down shows:
Bob Jones
Sam Snead
Arnold Palmer
Jack Nicklaus
Behind each of those names should be a unique email to their personal email accounts.
If I chose Bob Jones, a single email would go to [email]bjones@gmail.com[/email]. If I chose Bob Jones and Arnold Palmer, 2 emails would go out, one to [email]bjones@gmail.com[/email] and one to [email]apalmer@pga.com[/email]. If I chose all 4, then 4 emails would go out, etc.
Our requirement is that the body text and the subject (being dynamic from the form as well) need to be the same on every email it produces.
Does this get it?
Chris...
One more thing to add... the basic thing I am trying to do (for which I cannot find an extension) is to mimic the Internet Advocacy capability to send the same email to multiple representatives. You would choose the representatives in the drop down, then modify/edit suggested body text, then put in your contact information (all in form fields) then submit which would fill in the email elements on each separate email and send individual emails to each person selected.
If there is a Joomla extension for this that you know of, please let me know.
chris...
If there is a Joomla extension for this that you know of, please let me know.
chris...
Hi Chris,
I finally got it - apologies for being slow off the mark here.
At the moment, this would need to have the Email sender hand-coded in ChronoForms. Not difficult but not plug and play either. It might be possible to modify the code in the Email action [GH] to make it an option though. I'll take a look.
Bob
I finally got it - apologies for being slow off the mark here.
At the moment, this would need to have the Email sender hand-coded in ChronoForms. Not difficult but not plug and play either. It might be possible to modify the code in the Email action [GH] to make it an option though. I'll take a look.
Bob
Hi Chris,
I've updates the Email [GH] action to include an option for 'Individual emails'. If there is a list, or an array of emails in the To box and 'Individual emails' is checked then a separate email is sent to each recipient; if its not checked then a single email is sent addressed to all the recipients. The emails are otherwise identical.
You can get the action here or send me an email of PM and I'll email you a copy to test.
Bob
I've updates the Email [GH] action to include an option for 'Individual emails'. If there is a list, or an array of emails in the To box and 'Individual emails' is checked then a separate email is sent to each recipient; if its not checked then a single email is sent addressed to all the recipients. The emails are otherwise identical.
You can get the action here or send me an email of PM and I'll email you a copy to test.
Bob
This topic is locked and no more replies can be posted.
