What's WP
Our everything is about WordPress - best choice of WordPress users!
How to Add an Email This Option to WordPress Posts and Pages

How to Add an Email This Option to WordPress Posts and Pages

To attract visitors coming to your site, it’s an essential strategy to create quality posts. However, it’s not enough. Besides focusing on content, you need to try all kinds of methods to attract traffic and present your articles in front of a large number of readers.

Sharing your blog with people is an important trick for that. That’s why many bloggers maintain their own social platforms. Another effective way for sharing we would like to mention today is to add an Email This option to WordPress posts and pages, so that readers can email the articles they like to their families and friends.

In this guide, we would like to utilize a WordPress plugin named WP-Email and focus on how to configure the plugin and add the “Email This” option.

Install And Activate WP-Email

When referring to a plugin, the very first step you need to take is to install and activate it, so it is the same to deal with WP-Mail. Turn to this plugin installation tutorial if you have any question in the process of installing.

Install And Activate WP Email

Configure WP-Email

Once you have activated the plugin, the “E-Mail” option is added to the Dashboard menu. What you need to do is to find it and click “E-Mail Options”.

Click Email Options

On the “E-Mail Options” page, you need to do some configurations. For the “SMTP Settings”, if you use a SMTP server, you can enter the information of the username and password, etc. However, if you’re not using it, you can just leave these fields blank.

Below there is the “E-Mail Styles” section where you are allowed to set the email styles, including email text link for post and page, email icon and so on.

Email Options Page

The next part is “E-Mail Settings”. For the “E-Mail Fields”, you can check the box next to the information that you want your readers to see. Below is the “E-Mail Content Type” where you can select HTML or Plain Text format. As for what method to use to send email, choose SMTP if you are using a SMTP server. Otherwise, you should select PHP or SendMail.

For other settings, refer to the following list.

  • No. Of Words Before Cutting Off: This allows you to set certain character limit to enable the snippet feature in the email. Our advice is to set the number of characters between 100 to 250, as such length of excerpt is enough to deliver the general idea of a post.
  • Interval Between E-Mails: It is a good feature to prevent spam. You can set the interval between each email sent by one user.
  • Max Number Of Multiple E-Mails: This feature can be enabled if the value is set more than 1. For example, setting 5 means the maximum number of e-mails that can be send at one go is 5.
  • Enable Image Verification: You can choose Yes or No. However, as you can notice here, the recommended selection is Yes if your server supports PHP GD Library.

Email Settings

Now, move on. As the screenshot below shows, there are various template variables with detailed explanations next to them, which you may need to use in the following configurations.

Template Variables

Then it’s time to configure different templates using the variables provided above. Take the “E-Mail Page Title” for example, the default setting is “E-Mail ‘%EMAIL_POST_TITLE%’ To A Friend” in the field, you can change it to another one. If you want to restore to the default template, just click on the restore button below it.

Email Page Templates

The same goes for other settings, including E-Mail Templates, After Sending E-Mail Templates and E-Mail Misc Templates.

After you have completed, don’t forget to click “Save Changes” to apply these configurations.

Save Changes

One more thing you need to pay attention to is updating your permalink settings. To do this, navigate to Settings and click “Permalinks”. Instead of making any change, all you need to do is to click the “Save Changes” button. This will refresh your .htaccess file.

Save Permalinks

Add Email This to WordPress Posts And Pages

The final part is to display “Email This” option to WordPress posts and pages. There are 2 cases for that.

Case 1

If you want to add the email option to few of your posts or pages, simply insert the shortcode [email_link] into each post. You may also add the same shortcode in a text widget if you want to initiate this option to all of your posts or pages.

However, by default, WordPress does not allow using shortcode in text widgets. To enable this, add the following code in your theme’s functions.php file.

Add Filter in Theme Function File

Case 2

For those who do not mind editing code, they can add the code below in the theme’s functions.php file.

Add Code in Theme Function File

Once done, the “Email This” button will be added at the bottom of every single post or page. For more details about customized display of this option, you can visit the FAQ page of the WP-Email plugin.


Lucy has been a very experienced SEOer, technical writer, web developer, c# developer since 2002. Now she owns a startup in San Francisco, CA, focusing on running a couple of blogs to share knowledge and experience with global readers and deliver exceptional results to global sponsors by leveraging the power of Internet.


Want to Learn More About WordPress?

Get Our Free Themes, Plugins, Support, SEO Tips, and Other Tutorials!

Email *