Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    609

    Default PHP script not sending email when called throught a cron with lynx

    PHP script not sending email when called throught a cron with lynx

    It works ok with lynx via the command line and through IE.

    Why is this not working through a cron?

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    12

    Default

    the question is why are you using cron to run a php file with lynx?

    instead of putting in the lynx command just use somethign along the lines of

    /usr/local/bin/php -q -f /path/to/file.php

    and it will do it without lynx.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    609

    Default

    The file is not on the server I am running the crontab from.

  4. #4
    Member netwrkr's Avatar
    Join Date
    Apr 2003
    Posts
    203

    Default

    Quote Originally Posted by MarkReaktor7
    the question is why are you using cron to run a php file with lynx?

    instead of putting in the lynx command just use somethign along the lines of

    /usr/local/bin/php -q -f /path/to/file.php

    and it will do it without lynx.
    I've actually seen a trend in this lately. More than a few of our customers have cron entries like this:

    http://domain.com/article/weekmailer.php

    Tom
    Thomas Petersen
    Myriad Network
    http://www.myriadnetwork.com

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    28

    Default

    Quote Originally Posted by netwrkr
    I've actually seen a trend in this lately. More than a few of our customers have cron entries like this:

    http://domain.com/article/weekmailer.php

    Tom
    What? Am I missing something?

    Not Found

    The requested URL /article/weekmailer.php was not found on this server.
    Apache Server at domain.com Port 80

  6. #6
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by surf chick
    What? Am I missing something?
    Yes, the above URL is an example and the resource to which it points does not actually exist.

  7. #7
    Member
    Join Date
    Feb 2004
    Posts
    28

    Default

    Ah, ok. Now I feel silly .

    What about the problem of no emails being received? Did anyone solve that? I've got a cron job backing up a database which works fine but it's not sending (or I'm not receiving) the email notification.

  8. #8
    Member
    Join Date
    Apr 2011
    Posts
    5

    Default Re: PHP script not sending email when called throught a cron with lynx

    anyone? Surf Chick?

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PHP script not sending email when called throught a cron with lynx

    The thread you've posted to is from 2006, so it is unlikely the original posters are still watching this thread.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. CRON jobs not sending email
    By pietrodroid in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-08-2011, 08:32 PM
  2. Server crash because php script sending mails to nobody
    By benito in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-18-2006, 04:30 PM
  3. cron, php and email not sending
    By tgavin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-17-2006, 04:27 PM
  4. Sending email to a Script using CPanel
    By uamistad in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-28-2005, 08:32 AM
  5. Email Filtering - Sending mail to a PHP script.
    By uamistad in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-26-2005, 02:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube