browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Sending posts via email to WordPress on OS X with a POP connection

Posted by on September 19, 2008

This link shows how you can post to your blog via email:

http://codex.wordpress.org/Blog_by_Email#Hack_E-mail_Format

but there are a few tweaks I had to do to get it to work on my WordPress installation on Mac OS X Server.

The first thing I had to figure out is that since my mail server requires a secure connection for POP connections on port 995, instead of listing the mail server, I had to use this format:

ssl://mailserver name
port:995

In order to automate the request for wp-mail.php, I put in a cron job to request this script every five minutes:

curl -N http://example.com/installdir/wp-mail.php

I used Cronnix as an easy way to create the cron job with 0-59/5 in the first field which tells cron to make the request every five minutes.

One other thing I learned is that email can only be interpreted if it’s sent in plain text format.