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?
Need the full and specific error please if you have it.
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
@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.