• Resolved nickyu

    (@nickyu)


    Hey everyone!

    I have a strange problem, (I am a newbie.. I guess everything is strange).

    Anyways, when I run https://www.mysite.com/wp-mail.php… I have no problems. Returns either I have posts or none.

    BUT, when I run a cron job. I get this:

    /home/nickandj/public_html/wp-mail.php: line 1: ?php: No such file or directory

    /home/nickandj/public_html/wp-mail.php: line 2: syntax error near unexpected token dirname'

    /home/nickandj/public_html/wp-mail.php: line 2:
    require(dirname(__FILE__) . ‘/wp-config.php’);’

    I am not sure if its something to do with the file or my server accessing it.

    Has anyone else had this problem? or could someone point me in the right direction? I would rather have the server check for me, instead of having to run the script manually everytime.

    Thanks for any help!
    Nick

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wp-mail.php error?’ is closed to new replies.