Hello,
I tried to use the point 31 in the faqs : How can I safely show a list of e-mail addresses?
I created a select element :
And in the On Submit code - before sending email I put :
When submitted I get : Could not instantiate mail function
Any help please?
Best regards
Amorino
I tried to use the point 31 in the faqs : How can I safely show a list of e-mail addresses?
I created a select element :
<select class="cf_inputbox validate-selection" id="select_13" size="1" title="Vous n'avez pas choisis le pays de destination" name="select_13" onChange="affiche(this.value)">
<option value="" selected>Pays</option>
<option value="france">France</option>
<option value="maroc">Maroc</option>
<option value="tunisie">Tunisie</option>
</select>
And in the On Submit code - before sending email I put :
<?php
$emails_2 = array('france'=>'aaa@aaa.fr;bbb@bbb.fr;ccc@ccc.fr', 'maroc'=>'ddd@ddd.fr;eee@eee.fr;fff@fff.com', 'tunisie'=>'ggg@ggg.fr; hhh@hhh.fr');
$MyForm =& CFChronoForm::getInstance('PlanifierRDV2');
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'to', $emails_2[$_POST['select_13']]);
?>
When submitted I get : Could not instantiate mail function
Any help please?
Best regards
Amorino