Not able to send Email through windows Scheduler
Posted: 09 Jun 2014, 10:16
Hi,
Running mantis on WAMP server.
Email are configured to be sent through Gmail and working fine without cronjob but is causing a lot of performance slowdown.
when try to send Emails through windows scheduler, getting the following error in mantis logs
ERROR: Message could not be sent - SMTP Error: Could not connect to SMTP host.
I have commented the following lines in send_emails.php file and is working fine without scheduler.
if( php_sapi_name() != 'cli' ) {
echo "send_emails.php is not allowed to run through the webserver.\n";
exit( 1 );
Following are the config file options.
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_from_email = 'XXXXXXXX';
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_port = '465';
$g_smtp_username = 'XXXXXX';
$g_smtp_password = 'XXXXXXX';
$g_smtp_connection_mode = 'ssl';
$g_email_send_using_cronjob = ON;
Please guide me, what am I doing wrong and What could be the possible Solution for this.
Thanks in Adnace
Ghansham
Running mantis on WAMP server.
Email are configured to be sent through Gmail and working fine without cronjob but is causing a lot of performance slowdown.
when try to send Emails through windows scheduler, getting the following error in mantis logs
ERROR: Message could not be sent - SMTP Error: Could not connect to SMTP host.
I have commented the following lines in send_emails.php file and is working fine without scheduler.
if( php_sapi_name() != 'cli' ) {
echo "send_emails.php is not allowed to run through the webserver.\n";
exit( 1 );
Following are the config file options.
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_from_email = 'XXXXXXXX';
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_port = '465';
$g_smtp_username = 'XXXXXX';
$g_smtp_password = 'XXXXXXX';
$g_smtp_connection_mode = 'ssl';
$g_email_send_using_cronjob = ON;
Please guide me, what am I doing wrong and What could be the possible Solution for this.
Thanks in Adnace
Ghansham