Jump to content

Cron job sends 60 emails


CrazyLB

Recommended Posts

isn't the cron job supposed to be run only once per day... not 60 times in one hour!

 

You must configure the Cron Job to run once per day inside your hosting control panel for the automated actions to occur (if you didn't do it when advised during the installation process).

 

http://docs.whmcs.com/Automation_Settings

 

The cron must be configured to run no more than once per day.

 

http://docs.whmcs.com/Crons

Link to comment
Share on other sites

  • 1 year later...

I had a similar issue. It was not a WHMCS issue. As the others have said it was a cron issue.

 

Basically this was my cron setup before:

* 2 * * * php -q /home/cpunat5/public_html/smgr/cron.php

 

The first '*' represents minutes. Since it was a '*' the cron runs every minute for the whole hour. As a result, every morning I woke up to 60 emails.

 

The solution is to set that first '*' to a 0, so it runs only the first time.

 

Cron listing afterward:

0 2 * * * php -q /home/cpunat5/public_html/smgr/cron.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated