Forums

Manually Disable Email Sending

khenn 02 Feb, 2010
I searched the forum and come across the following code to disable the email sending. Is this right? It doesn't seem to work. I have tried the following code inside an if statement and also as the very last statement in my onsubmit before email. No matter what I do, it doesn't work. I'm using Joomla 1.5.15 and ChronoForms 3.1 RC5.5


	$MyForm =& CFChronoForm::getInstance('my_alerts');
	$MyForm->setFormData('emailresults', false);


Thanks,
Kris
khenn 04 Feb, 2010
Anyone?
GreyHead 04 Feb, 2010
Hi Kris,

Please try
$MyForm->haltFunction['emails'] = true;

Bob
khenn 17 Feb, 2010
What if you have 2 emails setup, but you only want to disable 1 of them?
GreyHead 17 Feb, 2010
Hi khenn,

Different question - there have been a couple of recent threads on selectively enabling and disabling emails.

Bob
khenn 05 Mar, 2010
Can you please point me in the right direction because I must not be using the correct search criteria. I can't find any additional info. I thought I could use the code that I listed above, but that doesn't seem to work.
This topic is locked and no more replies can be posted.