Campaign email not work

email can not work, could you please help me ? thank you

What does this give you?

cat /etc/crontab

It looks like you have an error in your crontab (“bad minute”)

Also, you shouldn’t be using the system crontab, unless you specify your web server user name in there (not root).

See Admin / Schedulers for instructions specific to your system (at the bottom, below the table).

That basically looks empty. Are you still getting that “bad minute” error?

Maybe you’re using a different crontab (there is one per user).

Did you set up your cron jobs, following the instructions in Admin / Scheduler?

hello, Pgr, I am new, could you help me ? thank you
what should i do now? i am waitfing for your message, thank you

Hi @andychiang, correct me if i’m wrong @pgr. The user could run php -f cron.php from the root directory of the CRM and if emails start sending from campaigns then we know the issues is cron related and can work from there?

Thanks for your message, do you mean add the code below to the crontab?

          • cd /var/www/html/suitecrm; php -f cron.php > /dev/null 2>&1

No sorry! I should have been more clear. The command php -f cron.php causes cron to be triggered once in a manual manor and could be used for debugging. I’m not sure the effect of including that within your cron tab would have (I assume nothing serous but i wouldn’t suggest including it within there for now)

Thank you for your advice, could you please help me solve the problem? i do not know how to solve this problem, could you please tell me how to operate it

thank you

Hi @andychiang,

Could you please provide more information regarding your setup by answer the question below;
What is your OS and OS version?
What PHP Version are you using?
What SuiteCRM Version are you using?
What Hosting environment are you using? - Apache2, Nginx etc etc

Thanks :+1:

Hi, the information as below

Linux HuamaoCRM 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64
CentOS Linux release 7.7.1908 (Core)
Apache/2.4.6 (CentOS)
PHP Version 7.2.24
suitecrm 7.10.22
SuiteCRM 7.10.22 LTS

LAMP envirinment maybe

thank you

I seems your “cd” command isn’t taking you to the SuiteCRM root directory.

Is your SuiteCRM root directory /var/www/html? Or is it something else? That’s what you need to use in the CD command.

What exactly are the instructions you’re getting in Admin /Schedulers?

my suitecrm root directiry is /var/www/html/huamaocrm/

In order to run SuiteCRM Schedulers, edit your web server user’s crontab file with this command:

sudo crontab -e -u apache

… and add the following line to the crontab file:

* * * * * cd /var/www/html/huamaocrm; php -f cron.php > /dev/null 2>&1

Ok, so use that command and it should work :crossed_fingers:

i am so sad and it does not work for now

The Bad minute indicates potentially a bad syntax. Have a wee search for (CRON) bad minute

Use cat -v /etc/crontab to check for unintended control characters.