Forcing an Email Check

Postie relies on the built-in WordPress Cron process to fetch emails and turn them into posts. However, WordPress requires that there be traffic to your site in order to run the Cron process.

The first check you must do to be sure the WordPress Cron is enabled. Clicking Test Config on the Postie settings page will tell you if Cron is disabled. Look for

Cron: On

If you see Cron: off open your wp-config.php file and find a line like

define('DISABLE_WP_CRON', true);

if present, remove it. WordPress Cron should now work.

External Cron

If you would prefer to have more fine-grained control of how Postie checks for mail or you can’t get the WordPress Cron to work, you can setup a cron job.

The Easy Way

If you are using a hosting company that doesn’t allow you access to cron or you don’t want to mess with it you can use a service like SetCronJob to access http://<myblog>/wp-content/plugins/postie/get_mail.php.

The Techie Way

Setup a cronjob to access get_mail.php – note that every time you access get_mail.php Postie will run – it is like clicking Run Postie on the Admin screen.

Linux

If your site runs on a UNIX/linux server, and you have shell access, you can enable mail checking using cron.

Examples:
This fetches the mail every five minutes with lynx

*/5 * * * * /usr/bin/lynx --source http://<myblog>/wp-content/plugins/postie/get_mail.php >/dev/null 2>&1

This fetches the mail every ten minutes with wget

*/10 * * * * /usr/bin/wget -O /dev/null http://<myblog>/wp-content/plugins/postie/get_mail.php >/dev/null 2>&1

Windows

You will need to install wget or curl.
Then use the Task Scheduler control panel to call wget or curl.
Examples:
wget example

wget http://<myblog>/wp-content/plugins/postie/get_mail.php

curl example

curl http://<myblog>/wp-content/plugins/postie/get_mail.php

Comments are closed.