Page 1 of 1

How to use $g_email_send_using_cronjob

Posted: 05 Nov 2009, 11:59
by GeroldK
I just spent an hour to find documentation on the usage of $g_email_send_using_cronjob, but failed miserably.

I want to set it to ON, but could not find a procedure to run within the cronjob.

Pointers to explanations welcome. Thanks.

/gerold

Re: How to use $g_email_send_using_cronjob

Posted: 06 Nov 2009, 11:44
by Buga
You need to call core/send_emails.php in your cronjob

Re: How to use $g_email_send_using_cronjob

Posted: 06 Nov 2009, 19:47
by GeroldK
That was exactly it.

Thanks very much,

/Gerold

Re: How to use $g_email_send_using_cronjob

Posted: 29 Nov 2012, 23:32
by toddscruggs
I have mail working but as soon as I add $g_email_send_using_cronjob = ON; I stop getting email.
I also ran in dos window php send_emails.php but didn't get email.
I got the following
Sending emails...
Done.

I also have in php.ini - sendmail_path = "D:/wamp/sendmail/sendmail.exe -bd -t -q1m"
I also tried sendmail.exe with different parameters at the end.

do I need to add sendmail.exe as a scheduled job?
Windows 2008 server , Apache 2.2.22, php 5.3.13, mysql 5.5.24 - using gmail for now as smtp host.