WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-mail errors on empty POP3 inbox (5 posts)

  1. lexhair
    Member
    Posted 6 years ago #

    Version 2.3.1. I have a cron that calls wp-mail.php every 6 hours. If there is an email in the POP3 box, it works fine and the post shows up on the blog.

    If the POP3 box is empty, I get a 500 error in the log. Is this normal behavior? Should it exit more gracefully?

  2. theapparatus
    Member
    Posted 6 years ago #

    Need the full and specific error please if you have it.

  3. Alex Concha
    Member
    Posted 6 years ago #

    When the inbox is empty wp-mail.php calls wp_die [1] with the proper message, but that function also sends a 500 status header and that's why you are seeing these "errors".

    [1] http://trac.wordpress.org/browser/trunk/wp-mail.php#L18

  4. lexhair
    Member
    Posted 6 years ago #

    @xknown...thanks. I've been following the trac for the wp-mail updates and thought that might be the case. There's really no reason for this instance to generate an error.

  5. lexhair
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic