I have the book, and used the formula for sending different e-mails based on a form field. I'm getting an error, "Class 'CFEMails' not found." Then I've searched for any documentation on classes available in chronoforms custom code and came up empty handed.
Can someone please point me toward documentation?
thanks!
Here's the code I used:
Can someone please point me toward documentation?
thanks!
Here's the code I used:
<?php
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$contact_me = JRequest::getString('contact_me', '', 'post');
if ( $contact_me == "yes" ) {
$MyFormEmails->setEmailData('contact', 'enabled', true);
$MyFormEmails->setEmailData('nocontact','enabled',true);
}
?>