Does anybody know if I can safely rename wp-mail.php? Seems to me that nothing else depends on that particular file name, but I thought I’d ask, just in case.
My thinking is that renaming it to something different would prevent “accidental” navigation to that link. I have a habit of hitting the “send” button on my emails two seconds before I discover something I’d rather not post!
Many thanks,
Tom
#!/usr/bin/php -q
Warning: ini_set() has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/koelschimpott/wordpress/wp-content/plugins/postie/PEAR.php on line 62
Connecting to pop.mail.yahoo.de:110 (pop3))
Mail Connection Time Out
Common Reasons:
Server Down
Network Issue
Port/Protocol MisMatch
The Server Said POP3 connect: Error [] []
any guess what′s going wrong here???
maybe my server isn′t supporting any neccessary things???
thx for any help
]]>When I run the wp-mail.php file from the browser, like the documetation states I get the message “POP3 connect: No server specified”
Can somebody help me solve this.
Thanks
Harry
The Caveat:
In order to fully automate this task you need to use a cron job or some other automation program to call wp-mail.php on a schedule. Several of these programs work well. My web host uses the cURL library and has a handy tool which sends the result of the cURL call to an email address. The email is (unfortunately in my case) required. Every return from cURL will generate an email.
Since I have curl/wp-mail checking for new messages every 5 minutes, I get a new email every 5 minutes, with or without a post.
The Solution:
I have added modified the wp_die call for ‘There doesn’t seem to be any new mail’ to allow for a variable to be passed in the url which suppresses the page output when there are simply no emails to post:
if (0 == $count){
if(isset($_GET['echoNoneFound']))
die();
}
else{
wp_die(__('There doesn’t seem to be any new mail.'));
}
}
The cURL command is:
curl -s -S https://[yoursite]/[wordPress_install_dir]/wp-mail.php?echoNoneFound=0
I cannot seem to get the blog-by-email to work. I have set up an email account for the purpose, which I have checked directly to ensure that it is, indeed, working. I have set up the blog-by-email option in WordPress’s admin area, with the same specifications. I have installed the wp-cron plugin and the wp-cron-mail plugin. When I send the messages, they are going through to the email account, but they are not appearing as blog posts.
Am I overlooking something? Does it just take a really long time for them to appear? (This has been several hours.) Does my checking the email for that address affect anything (i.e. does the email need to be either read or unread in order for WP to have access to it)?
Thanks in advance.
]]>