How To Post To Your Blog Via Email
About This Lesson
Within WordPress is the ability to post to your blog by sending an email.
So you can send an email to say, firstname.lastname@example.org and the contents of that email will display as a blog post.
In this lesson, I’ll show you the three steps you need to complete to set this up, which are,
Read All About It
Step 1/3 – Create A Unique Email Account
For this to work, you’ll need an email address that you use only for posting via email and that only you know.
You cant use an email that everyone knows, like email@example.com.
If you used that, anyone who sends an email to that address could end up having a post on your blog.
So in this example I’m going to create the email account firstname.lastname@example.org.
Notice how I went with something that would be impossible for someone to guess, or to accidentally send an email to, but it’s also something that I can remember.
I suggest you do the same.
So decide what you want to call this email account and then create it.
Step 2/3 – Setup WordPress To Receive Email Posts
You then need to let WordPress know the details of the email account you just created.
Scroll down until you get to “Post via e-mail”.
We then need to change these settings from the default details, to our unique details, so in this example,
- The mail server is, mail.cmgtesting.com. For you it will be, mail.yourdomain.com
- The port is generally 110, so don’t change this
- The login name, is the email address you created, so in this case, email@example.com
- The password, is the password you created when you created the email account
- The default mail category, is the category on your site that you want these emails to go into. In this case I’m going to keep this as Uncategorized
Then save changes.
Step 3/3 – Publish The Email Posts
In the final step, you’ll need to visit a webpage to confirm you want to publish the email you send.
You’ll need to go to, http://www.yourdomain.com/yourwordpressfolder/wp-mail.php
So in my case this is, http://www.cmgtesting.com/wordpress/wp-mail.php
You’ll need to go to this page immediately after you send an email. And you’ll need to do this every time you send an email you want to post.
But that’s it. That’s all there is to it.
Side Note: If you didn’t install WordPress into a folder, you simply go to, http://www.yourdomain.com/wp-mail.php.
An Example Of This In Action
Here’s an example email that I’m about to send.
- This is the email address I need to send this post to
- The subject line will be used as the post title
- The main body will be used as the post content
- Because I’m using gmail to send this email, I need to make sure that this email is sent as “plain text”. To understand why, see, “One last important thing you need to know”, at the bottom of this page
If I then visit http://www.cmgtesting.com/wordpress/wp-mail.php, WordPress will receive and publish this post.
This is the post “live” on my blog.
And here’s the post in the admin area of WordPress.
So that’s it, all done.
One Last Important Thing You Need To Know
Whenever you send posts via email, you need to send them as plain text, I’ll let WordPress explain why.
By default, most web-based email clients send messages in HTML formatting, which WordPress’s “blog-by-email” feature filters out.
To get around this, you must select “plain text” before sending.
To select “plain text” in Yahoo
To select “plain text” in Gmail (number 4)
To select “plain text” in Hotmail/Outlook online
And that’s it for this lesson.
If you want more details on this process, or anything to do with creating posts via e-mail, visit the WordPress website.
If you’re interested in more tutorials like this, check out my individual tutorials page.