How To Post To Your Blog Via Email

Example 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, me@cmgtesting.com 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,

1) Create a unique e-mail account to send your WordPress posts to

2) Setup WordPress so it can receive these emails

3) Publish the email post

And you can also see an example of this in action

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 contactus@cmgtesting.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 hi123bye@cmgtesting.com.

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.

If you don’t know how to create your own email account, see my lesson how to create email accounts. (You only need to complete steps 1/3 – 3/3 in that lesson).

Create An Email Account

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.

To do this, you’ll need to login to the admin area of your WordPress site and then go to the writing settings, like in the image below.

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,

Set Up WordPress To Receive Email Posts

  1. The mail server is, mail.cmgtesting.com. For you it will be, mail.yourdomain.com
  2. The port is generally 110, so don’t change this
  3. The login name, is the email address you created, so in this case, hi123bye@cmgtesting.com
  4. The password, is the password you created when you created the email account
  5. 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.

Example Email

  1. This is the email address I need to send this post to
  2. The subject line will be used as the post title
  3. The main body will be used as the post content
  4. 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.

Visit wp mail

This is the post “live” on my blog.

Post By Email Live On Web

And here’s the post in the admin area of WordPress.

Post By Email In 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

Yahoo Plain Text Mode

To select “plain text” in Gmail (number 4)

Example Email

To select “plain text” in Hotmail/Outlook online

Outlook Plain Text Mode

All Done

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.