Hello there,
I have a dropdown form which is working perfect with the code below. I send it as a BCC. And is working fine. BUT I want to send to multiple (40 to 50) emails if one option is selected eg.
'Salzburg' => [email]'email@yahoo.com[/email],email2@yahoo.com',
I get the following error:
[email]PHPMAILER_RECIPIENTS_FAILEDemail@yahoo.com[/email],email2@yahoo.com
How can you do it? Or is there a solution to get the emails out of database?
Thanks for your help.
Mostlyseven
PS: I have bought the book "ChronoForms 1.3 for Joomla! Site Cookbook" it is great!
I have a dropdown form which is working perfect with the code below. I send it as a BCC. And is working fine. BUT I want to send to multiple (40 to 50) emails if one option is selected eg.
'Salzburg' => [email]'email@yahoo.com[/email],email2@yahoo.com',
I get the following error:
[email]PHPMAILER_RECIPIENTS_FAILEDemail@yahoo.com[/email],email2@yahoo.com
How can you do it? Or is there a solution to get the emails out of database?
Thanks for your help.
Mostlyseven
PS: I have bought the book "ChronoForms 1.3 for Joomla! Site Cookbook" it is great!
<?php
$select_7 = JRequest::getString('select_7', 'admin', 'post');
$emails = array (
'Salzburg' => 'email@yahoo.com',
'Wien' => 'email@google.com',
'admin' => 'admin@example.com'
);
$email_to_use = $emails[$select_7];
JRequest::setVar('email_to_use', $email_to_use);
?>