Forums

Chronoforms faq 31 error notice

Mats 07 May, 2010
Hi,

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
Mats 07 May, 2010
Problem fixed,

My dynamic to was set to artistic, glass and architect.

Not it's set to interest (roll down name).


Now you have the answer hehehe
This topic is locked and no more replies can be posted.