AndyB
Well-known member
Hello,
In my add-on I have the following which sends emails:
In testing I see the following code entered into the config.php is not working to stop emails from being sent.
Should I add some code to my add-on to prevent this issue, or is the code in XenForo not working correctly?
Thank you.
In my add-on I have the following which sends emails:
PHP:
// prepare mail variable
$mail = XenForo_Mail::create('weeklydigest_contact', $params);
// send mail
$mail->queue($user['email'], $user['username']);
In testing I see the following code entered into the config.php is not working to stop emails from being sent.
PHP:
$config['enableMail'] = 'false';
Should I add some code to my add-on to prevent this issue, or is the code in XenForo not working correctly?
Thank you.