Suppress email

gaze 07 Apr, 2009
Hi there,

I was wondering if there is a way to allow the form to be submitted but to suppress the email.
In some cases the user should only get a message on the screen, in some other special case, the user get's an email after the submit.

Regards,
Johan van Leur
Max_admin 09 Apr, 2009
Hi Johan,

you need to use PHP and use the useful functions in RC4 to do this, so you need to upgrade😉

here is an example:

if(true){
$MyForm =& CFChronoForm::getInstance();
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'enabled', 1);
//1 = email identifier, say you have 5 emails then this is the first email
//enabled is the email field which enable/disable the email, you can use to,dto,subject...etc
//1 is the enable value
}


cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.