Campaign email not work

You are running your cronjobs as root which will break your system.

If you want to continue using the system-wide crontab (/etc/crontab), instead of a specific user’s crontab, you should add your username after the asterisks.

See

In /etc/crontab you would use a line like

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

But I recommend that you just remove that line from there and follow the Admin / Schedulers instructions exactly.

I don’t understand that output. Instead of using status crond.service please use

crontab -l -u root
crontab -l -u Your_User_Name
crontab -l -u Your_Web_Server_User_Name

You can get your user name with whoami command.

You can get your web server username from the instructions under Admin / Schedulers.

Edit root’s crontab with

crontab -e -u root

and remove that line invoking cron.php. Save.

Now edit apache crontab with

crontab -e -u apache

and remove just the word “apache” from that line. Save.

That is because the user name is only used in the system-wide crontab. In specific user’s crontabs, no username is specified there.

Hopefully this will get the jobs working

i need send the mail from admin-email queued to click “send queued campaign emails”, then all the email will be sent out in one time
could you please help me solve the problem? thank you

Remove all those ^M from your crontab file, they shouldn’t be there

Anyway, I think your apache crontab is now correct, and you should be starting to see some jobs work.

In Admin / Schedulers, if you enter the jobs one by one, what do you see in the Last ran successfully field? Is any of them running? Do the times appear to be in the correct timezone?

I do not know where the is the M local, could you please help me, thank you

nano /etc/crontab

or

sudo nano /etc/crontab

it does not work, what should do next? thank you

What about this? Because if your jobs are working, you can forget about the ^M problems.

If not, then you need to find a way to remove those errors from that file. If sudo doesn’t work maybe you’re not the admin of that server? But then how did those ^M get into that file in the first place? Somebody else edited the file?

Maybe I edited it by accident, but I don’t know how to change it back, and I forget how to modify this file

Ok, but you have to realize it is beyond the scope of our SuiteCRM support here to tell you how to edit files in Linux :slight_smile:

Maybe you just need to get someone to help you over there.

thank you , i have solve the M problem , but the email never be send by the systerm, I’m desperate and broke down
here some Screenshot

Try checking your logs for any clues.

Is your “php” executable in the “path”? Try typing php -i to see if it gives some “not found” error. It it works, it will show all php settings.