Hi,
I've been searching your board for a few hours and I still haven't found the answer.
Here is my onSubmit code :
I have a roll down selection which chooses between 3 different e-mail address.
The setup works fine, the e-mails get delivered, but I get 2 of these error messages :
* You must provide at least one recipient e-mail address.
* You must provide at least one recipient e-mail address.
For each mail which is not delivered.
How can I desactivate these notices / fix the problem ?
Thanks
I've been searching your board for a few hours and I still haven't found the answer.
Here is my onSubmit code :
<?php
$emails_2 = array('architect'=>'architect@idnetdesign.ca', 'artistic'=>'artistic@idnetdesign.ca', 'glass'=>'glass@idnetdesign.ca');
$MyForm =& CFChronoForm::getInstance('contactform');
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'to', $emails_2[$_POST['interest']]);
?>
I have a roll down selection which chooses between 3 different e-mail address.
The setup works fine, the e-mails get delivered, but I get 2 of these error messages :
* You must provide at least one recipient e-mail address.
* You must provide at least one recipient e-mail address.
For each mail which is not delivered.
How can I desactivate these notices / fix the problem ?
Thanks