How to send emails to authors who have their articles published in WordPress
Any WordPress site owners actually have blogs that are written by different authors. When the article of any one of these authors is published they must be informed that such an article has been published so that they can participate in the discussion and they can also promote the article on their social networking sites. When you have too many authors writing for you it becomes quite difficult to keep a track if the author has been informed. Some WordPress users will not know perhaps that there is a method using which they can inform the authors each time an article of theirs have been published. In this article we will explain the same in more details so that the WordPress users can ensure that they do not have to spend too much of time informing the authors that their articles have been published. There are basically three methods here and they are:
- Using edit flow you can send post notification to the authors
- Using better notifications for WordPress to inform the authors
- Send email manually to the authors when the articles are published
We will now explain each of these methods in details so that the readers get an idea of what we are trying to say.
- Using edit flow you can send post notification to the authors – In order to do this you will have to plugin that is called the edit flow. We have already discussed about how you can install an activate WordPress plugins in our previous article. Just refer to that step by step guide and ensure that you have installed as well as activated the edit flow plugin correctly. Once you have done that you can move to the next step.
Edit flow plugin is very useful and it can work out of the box for the email notifications. You will understand what we are trying to say as soon as you activate the plugin. You will notice that it will start to send notifications to the authors immediately after the posts are published.
The point you must keep in mind here is that the default setting is such that the plugin will not inform the site admin about the mails that have been sent to the authors. If you want that you as the site admin must be informed about these mails then you will have to go to the edit flow page and then go to the notification page. Here you will have to select the option that says “always notify blog admin”. Once you have done that you will get all the notifications of the mails that are being sent. We are enclosing a screenshot that will explain how you can do this.
We must mention here that the edit flow is a very powerful plugin indeed and it can do a lot more than just sending email notification to the authors. You can read more about this plugin to understand how it can help you to ensure that your WordPress site performs much better.
- Using better notifications plugin for WordPress to inform the authors – This is the second method that we will be discussing. This method is recommended for those users who want to send email notification to the authors but they do not want to use any editorial feature or edit flow.
To do this you will have to install and activate the better notification plugin for WordPress. Once you have activated the plugin you will have to go to the next step. Visit the notification page and there go to add new page and create the email notifications that you want to be sent. The screen will look something like what we have enclosed below so that the readers get a better idea of what we are trying to say.
To do this the first thing that you will have to do is enter the title for the notification. You can choose any title that you like. For example you chose a title “post published notification for authors”. We will now mention what you need to fill in each field. In the notification for field you will have to mention “new post published”.
Under the additional email fields option you will have to check the box that states “new post published”. After this you will have to go to the next section that says additional email fields option here you will have to check on the box next to “send this notification to the author only”.
After you are done with all this you will have to enter the subject line and the email body. You will get a handful of shortcodes along with the better WordPress notification plugin. We will now mention some of these shortcodes and how you can use them in WordPress.
In the email subject field you should enter:
Post Published: [Post_title]
For the message body, the following template can be used:
We just published your post “[post_title]”
You can view it here: [permalink]
Once you are done with updating all these information you will have to click on the save button so that you can ensure that all the new changes that you have made are stored. After you are done with all this the plugin will send email notifications to the authors when their posts are published in WordPress.
We hope you are clear on how you can use the better notifications plugin to inform the authors that their articles have been published in your WordPress site so that they can do the needful.
- Send email manually to the authors when the articles are published – With this we come to the last method that you can use in order to send the notification to the various authors. As the name itself suggests you will have to do this manually so this can be used only by the users who have been using WordPress for a while and are comfortable with codes and snippets.
Below mentioned is the code that you will have to add to the theme’s functions.php file or to the site specific plugin. The code is similar to the one that we have enclosed below.
This code is written in such a manner that it will run each time a new post is published on WordPress. The code will ensure that an email notification is sent to the author using the message and the subject that is defined in the code. You can also change the subject and the message field as you want so that they can meet your requirements.
We hope that after reading this article you will be able to understand why it is important that you inform the authors that their articles have been published and you can also ensure that they are informed in a systematic manner about the publications. It is possible that sometimes the authors may not get the notifications even after all these settings that we have mentioned in the article if that happens you will have to go through the method that you have implemented in order to ensure that the fault is corrected.