WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post by email problem with CRON Jobs (5 posts)

  1. ericptak
    Member
    Posted 8 years ago #

    I set up an email addy to post to my blog. I set up a cron job "wget http://yourwebdomain/installdir/wp-mail.php" It worked good, but when I accessed http://yourwebdomain/installdir/wp-mail.php it kept saying no new posts. Then, when I went one day into my root directory, there were about 350 files in there,

    http://yourwebdomain/installdir/wp-mail.php
    http://yourwebdomain/installdir/wp-mail.php.1
    http://yourwebdomain/installdir/wp-mail.php.2 http://yourwebdomain/installdir/wp-mail.php.3 http://yourwebdomain/installdir/wp-mail.php.4
    http://yourwebdomain/installdir/wp-mail.php.5
    http://yourwebdomain/installdir/wp-mail.php.6
    http://yourwebdomain/installdir/wp-mail.php.7
    http://yourwebdomain/installdir/wp-mail.php.8
    and so on and so forth.

    How do I get this thing to check the secret email address for posts, and not have it generate a new file each time it does? All I want to do is send pics and text messages to my blog from my cellphone (because it's convenient) without doing alot of maintenance and upkeep.

  2. ericptak
    Member
    Posted 8 years ago #

    Actually, I just realized (after surfing several sites) that this has nothing to do with the CRON job. It has to do with wp-mail.php writing a new file every time it is accessed. I looked at the code and could not see where to change it so that it did not write a new page every time it is viewed.

  3. ericptak
    Member
    Posted 8 years ago #

    I should amend the original post, as the files created are not actually html files with actual web addresses. They are all ascii text files in the root directory containing the text "There doesn’t seem to be any new mail."

  4. ghost
    Member
    Posted 8 years ago #

    Icck. That's ugly. I just started using WP today, so I don't have any sort of suggestion, but I look forward to hearing about a solution.

  5. ericptak
    Member
    Posted 8 years ago #

    I have to apologize to the creators of Word Press. It's not wp-mail.php that's got the problem, it's the help file for posting by email. I just found a working solution on http://www.gnu.org/software/wget/manual/wget.html

    The cron job syntax that should be suggested is "wget -N http://yourwebdomain/installdir/wp-mail.php". This works perfectly and doesn't create hundreds of files in your root directory.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags