WordPress grants the facility of publishing a post on a website via email. This feature comes in handy when you cannot always access the dashboard of your website to create a new post. If it is very important to publish a post at that time and there is no way, you can access the email to accomplish your goal. In the following, we’d like to tell you how to publish a blog post via email to your WordPress site.
When to Do This?
Sometimes, it is more relevant to post on WordPress via email. This is true especially when you want to post the photos or videos on your phone to your WordPress website. This can be done on the go without accessing your dashboard. There is also another reason you want to use this feature. This is when someone has sent you something like a newsletter on your email, and you want it to be published on your WordPress website. The convenient method for this is to directly post this article via email. It saves you the effort of downloading the newsletter and then posting it through your dashboard.
How to Do This?
Now, you can see how this process of publishing a post on WordPress via email is accomplished. The following steps must be followed.
Download and install the Jetpack plugin. Go to the plugin on your dashboard and activate “Post by Email”. Next, you need to navigate to Users->Your Profile, and click on “Enable Post by Email”. Once you click on this, email address is generated for you. You must remember it. If you don’t like the one that has been generated, then you can click on ‘Regenerate Address’ to get another address.
Now, you need to open your email client (Yahoo, Gmail, etc.) and compose the message you want for your post. Then, enter the email address provided by WordPress above as the receiver’s email address, and enter the title of your post as the subject of your email.
Then, you can write the body of the post you want published in WordPress in the message part of the email. Here, you can apply the formatting options provided by the email client to the message. This formatting can be maintained as much as possible. In a case that your email client does not support rich text or HTML, you have to send an email to the drafts folder and format it later on.
Do not add a .log file. It can be rejected and delays the publishing of the post. If you want your post to show images, then you have to add them as URLs. If you directly add an image to the email body or attach it, then it can be ignored. Besides, the post must be well formatted. If not, it can be sent to the Drafts folder and not published immediately.
In addition, the attachments of any kind are directly sent to the Media Library, and anything that is written after the hr tag can be ignored. However, you can further customize your posts and control their behavior using shortcodes.
Now, you can click on the “Send” button. The correspondence can appear as a post on your WordPress website. Here, note that if you are an administrator, author or editor of the WordPress site, then your posts can be published immediately. However, if you only have contributor privileges, your post can not be published immediately. It is firstly sent for review.
There is an alternative method of publishing posts on WordPress via email. This feature added as part of the core of WordPress, may not be available in all versions. The following steps must be followed.
Login to your WordPress account, and then navigate to cPanel and Email Accounts. Now, you can create a new Email Account.
Go to Settings from your dashboard, and go to Writings. Now, you need to scroll down to the Post via e-mail section, and enter the following details as asked.
- Enter your domain name for the Mail Server box.
- Enter Port as 110.
- For login name, enter the email address created.
- Enter the password that corresponds to the email address in the password field.
Now, you can visit www.yourdomain.com/installdir/wp-mail.php to parse your posts if you publish using this method. This has to be done every time you make a post via email. Another alternative to this step is as follows.
You need to add the below code to the functions.php file.
This can check if an email is sent to be posted every 15 minutes. The time range can be changed as you wish. If an email is sent, then it can be sent to the drafts folder. If you want the post to be published directly, you can do so with Admin approval.