How to use $g_email_send_using_cronjob

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
GeroldK
Posts: 14
Joined: 30 Jul 2009, 12:12

How to use $g_email_send_using_cronjob

Post 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
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

Re: How to use $g_email_send_using_cronjob

Post by Buga »

You need to call core/send_emails.php in your cronjob
GeroldK
Posts: 14
Joined: 30 Jul 2009, 12:12

Re: How to use $g_email_send_using_cronjob

Post by GeroldK »

That was exactly it.

Thanks very much,

/Gerold
toddscruggs
Posts: 1
Joined: 29 Nov 2012, 04:01

Re: How to use $g_email_send_using_cronjob

Post 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.
Post Reply