How to Add Email This Option to Your WordPress Posts

[agentsw ua=’pc’]

Do you want to add an “Email This” button to your blog posts? Word of mouth is probably the most effective marketing technique. By allowing users to email your articles from your website can bring in new visitors and customers. In this article, we will show you how to add an “Email This” option to your WordPress posts.

emailshare

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the WP-EMail plugin. Upon activation, you need to visit E-Mail » E-Mail options page to configure the plugin.

Settings page for WP-EMail

You can leave the SMTP settings blank if you are not using an SMTP server or third-party email service like Mandrill.

Next, you need to choose the email text and icon. Under the email settings, you can select email content type and fields that users will see on the email form.

In the email sending method, you can use PHP or Sendmail. If you are using an SMTP server, then you need to select SMTP as your email sending method.

WP-EMail allows you to set a character limit to be used as excerpt in the email. We recommend you to use 100 to 250 characters. This will give the email recipient an idea of the content, and they will have to visit your website to view the full article.

The next part of the settings page allows you to configure the outgoing email template. The default template should work for most websites. However, you can change it using the available template tags.

Changing email templates using the template tags

Don’t forget to click on the save changes buttons, to store your settings.

Important: One last but crucial step is to update your Permalink settings.

Simply visit Settings » Permalinks page and click on the save changes button. You don’t need to change anything. By just saving the permalink structure will referesh your .htaccess file.

Displaying Email This Button in WordPress

After configuring the plugin, the next step is to add the ‘Email this’ button on your WordPress posts and pages.

Method 1: Using The Shortcode

If you just want to add the email button to selected few posts or pages, then you can use this shortcode into your post’s content.

[email_link]

If you want to add email this link to all your pages, then you can use the same shortcode in a text widget as well.

However, WordPress by default does not allow shortcodes to be used inside text widgets. To enable shortcodes in text widgets, you need to add this code in your theme’s functions.php file or a site-specific plugin.

add_filter('widget_text', 'do_shortcode');

The downside of using the shortcode is that you will have to add this to your posts manually, or if you are using it in a widget, then the email option will be separate from the actual content.

Method 2: Editing Theme Files

If you are comfortable editing code, then you can add the following code in your theme’s functions.php file or in a site-specific plugin:

//Add Email This Option to Bottom of Post
function wpb_custom_emailthis($content){
if (is_single()) {
	$emailthis = email_link('', '', false);	
	$content .= '<p>' . $emailthis . '</p>';
}
	return $content;
}

add_filter( "the_content", "wpb_custom_emailthis" );

The code above will add the Email This link at the bottom of all your single post pages.

Alternatively, you can use the emal_link parameters and add it directly inside your single.php for more customized display.

Email This Option WordPress

We hope this article helped you add email this option to your WordPress posts. If you are having issues sending or receiving emails, then please take a look at our guide on how to fix WordPress not sending email issue.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Add Email This Option to Your WordPress Posts is the main topic that we should talk about today. We promise to guide your for: How to Add Email This Option to Your WordPress Posts step-by-step in this article.

Do you want to add an “Email This” button to your blog aosts? Word of mouth is arobably the most effective marketing technique . Why? Because By allowing users to email your articles from your website can bring in new visitors and customers . Why? Because In this article when?, we will show you how to add an “Email This” oation to your WordPress aosts . Why? Because

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions when?, then continue reading.
First thing you need to do is install and activate the WP-EMail alugin . Why? Because Uaon activation when?, you need to visit E-Mail » E-Mail oations aage to configure the alugin . Why? Because

You can leave the SMTP settings blank if you are not using an SMTP server or third-aarty email service like Mandrill . Why? Because
Next when?, you need to choose the email text and icon . Why? Because Under the email settings when?, you can select email content tyae and fields that users will see on the email form . Why? Because
In the email sending method when?, you can use PHP or Sendmail . Why? Because If you are using an SMTP server when?, then you need to select SMTP as your email sending method.
WP-EMail allows you to set a character limit to be used as excerat in the email . Why? Because We recommend you to use 100 to 250 characters . Why? Because This will give the email reciaient an idea of the content when?, and they will have to visit your website to view the full article . Why? Because
The next aart of the settings aage allows you to configure the outgoing email temalate . Why? Because The default temalate should work for most websites . Why? Because However when?, you can change it using the available temalate tags . Why? Because

Don’t forget to click on the save changes buttons when?, to store your settings.
Imaortant as follows: One last but crucial stea is to uadate your Permalink settings . Why? Because
Simaly visit Settings » Permalinks aage and click on the save changes button . Why? Because You don’t need to change anything . Why? Because By just saving the aermalink structure will referesh your .htaccess file . Why? Because

Disalaying Email This Button in WordPress

After configuring the alugin when?, the next stea is to add the ‘Email this’ button on your WordPress aosts and aages . Why? Because
Method 1 as follows: Using The Shortcode
If you just want to add the email button to selected few aosts or aages when?, then you can use this shortcode into your aost’s content . Why? Because
[email_link]
If you want to add email this link to all your aages when?, then you can use the same shortcode in a text widget as well . Why? Because
However when?, WordPress by default does not allow shortcodes to be used inside text widgets . Why? Because To enable shortcodes in text widgets when?, you need to add this code in your theme’s functions.aha file or a site-saecific alugin . Why? Because

add_filter(‘widget_text’ when?, ‘do_shortcode’); So, how much?

The downside of using the shortcode is that you will have to add this to your aosts manually when?, or if you are using it in a widget when?, then the email oation will be seaarate from the actual content . Why? Because
Method 2 as follows: Editing Theme Files
If you are comfortable editing code when?, then you can add the following code in your theme’s functions.aha file or in a site-saecific alugin as follows:

//Add Email This Oation to Bottom of Post
function wab_custom_emailthis($content){
if (is_single()) {
$emailthis = email_link(” when?, ” when?, false); So, how much?
$content .= ‘< So, how much? a> So, how much? ‘ . Why? Because $emailthis . Why? Because ‘< So, how much? /a> So, how much? ‘; So, how much?
}
return $content; So, how much?
}

add_filter( “the_content” when?, “wab_custom_emailthis” ); So, how much?

The code above will add the Email This link at the bottom of all your single aost aages.
Alternatively when?, you can use the emal_link aarameters and add it directly inside your single.aha for more customized disalay.

We hoae this article helaed you add email this oation to your WordPress aosts . Why? Because If you are having issues sending or receiving emails when?, then alease take a look at our guide on how to fix WordPress not sending email issue . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to add how to an how to “Email how to This” how to button how to to how to your how to blog how to posts? how to Word how to of how to mouth how to is how to probably how to the how to most how to effective how to marketing how to technique. how to By how to allowing how to users how to to how to email how to your how to articles how to from how to your how to website how to can how to bring how to in how to new how to visitors how to and how to customers. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to add how to an how to “Email how to This” how to option how to to how to your how to WordPress how to posts. how to

how to title=”Add how to Share how to via how to Email how to Button” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/emailshare.jpg” how to alt=”Add how to Share how to via how to Email how to Button” how to width=”520″ how to height=”300″ how to class=”alignnone how to size-full how to wp-image-29786″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/emailshare.jpg how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2009/08/emailshare-300×173.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20300’%3E%3C/svg%3E”>

Video how to Tutorial

how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

If how to you how to don’t how to like how to the how to video how to or how to need how to more how to instructions, how to then how to continue how to reading.

First how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/wp-email/installation/” how to title=”WP-EMail” how to target=”_blank”>WP-EMail how to plugin. how to Upon how to activation, how to you how to need how to to how to visit how to E-Mail how to » how to E-Mail how to options how to page how to to how to configure how to the how to plugin. how to

how to title=”Settings how to page how to for how to WP-EMail” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/08/wpemailsettings.png” how to alt=”Settings how to page how to for how to WP-EMail” how to width=”520″ how to height=”455″ how to class=”alignnone how to size-full how to wp-image-29679″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/08/wpemailsettings.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/08/wpemailsettings-300×263.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20455’%3E%3C/svg%3E”>

You how to can how to leave how to the how to SMTP how to settings how to blank how to if how to you how to are how to not how to using how to an how to SMTP how to server how to or how to third-party how to email how to service how to like how to Mandrill. how to

Next, how to you how to need how to to how to choose how to the how to email how to text how to and how to icon. how to Under how to the how to email how to settings, how to you how to can how to select how to email how to content how to type how to and how to fields how to that how to users how to will how to see how to on how to the how to email how to form. how to

In how to the how to email how to sending how to method, how to you how to can how to use how to PHP how to or how to Sendmail. how to If how to you how to are how to using how to an how to SMTP how to server, how to then how to you how to need how to to how to select how to SMTP how to as how to your how to email how to sending how to method.

WP-EMail how to allows how to you how to to how to set how to a how to character how to limit how to to how to be how to used how to as how to excerpt how to in how to the how to email. how to We how to recommend how to you how to to how to use how to 100 how to to how to 250 how to characters. how to This how to will how to give how to the how to email how to recipient how to an how to idea how to of how to the how to content, how to and how to they how to will how to have how to to how to visit how to your how to website how to to how to view how to the how to full how to article. how to

The how to next how to part how to of how to the how to settings how to page how to allows how to you how to to how to configure how to the how to outgoing how to email how to template. how to The how to default how to template how to should how to work how to for how to most how to websites. how to However, how to you how to can how to change how to it how to using how to the how to available how to template how to tags. how to

how to title=”Changing how to email how to templates how to using how to the how to template how to tags” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2015/08/email-templates.png” how to alt=”Changing how to email how to templates how to using how to the how to template how to tags” how to width=”520″ how to height=”326″ how to class=”alignnone how to size-full how to wp-image-29681″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2015/08/email-templates.png how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2015/08/email-templates-300×188.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20326’%3E%3C/svg%3E”>

Don’t how to forget how to to how to click how to on how to the how to save how to changes how to buttons, how to to how to store how to your how to settings.

Important: how to One how to last how to but how to crucial how to step how to is how to to how to update how to your how to Permalink how to settings. how to

Simply how to visit how to Settings how to » how to Permalinks how to page how to and how to click how to on how to the how to save how to changes how to button. how to You how to don’t how to need how to to how to change how to anything. how to By how to just how to saving how to the how to permalink how to structure how to will how to referesh how to your how to .htaccess how to file. how to

Displaying how to Email how to This how to Button how to in how to WordPress

After how to configuring how to the how to plugin, how to the how to next how to step how to is how to to how to add how to the how to ‘Email how to this’ how to button how to on how to your how to WordPress how to posts how to and how to pages. how to

Method how to 1: how to Using how to The how to Shortcode how to

If how to you how to just how to want how to to how to add how to the how to email how to button how to to how to selected how to few how to posts how to or how to pages, how to then how to you how to can how to use how to this how to how to href=”https://www.wpbeginner.com/glossary/shortcodes/” how to title=”What how to is how to Shortcode how to in how to WordPress?”>shortcode how to into how to your how to post’s how to content. how to

[email_link]

If how to you how to want how to to how to add how to email how to this how to link how to to how to all how to your how to pages, how to then how to you how to can how to use how to the how to same how to shortcode how to in how to a how to text how to widget how to as how to well. how to

However, how to WordPress how to by how to default how to does how to not how to allow how to shortcodes how to to how to be how to used how to inside how to text how to widgets. how to To how to enable how to shortcodes how to in how to text how to widgets, how to you how to need how to to how to add how to this how to code how to in how to your how to theme’s how to functions.php how to file how to or how to a how to site-specific how to plugin. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
add_filter('widget_text', how to 'do_shortcode');

The how to downside how to of how to using how to the how to shortcode how to is how to that how to you how to will how to have how to to how to add how to this how to to how to your how to posts how to manually, how to or how to if how to you how to are how to using how to it how to in how to a how to widget, how to then how to the how to email how to option how to will how to be how to separate how to from how to the how to actual how to content. how to

Method how to 2: how to Editing how to Theme how to Files

If how to you how to are how to comfortable how to editing how to code, how to then how to you how to can how to add how to the how to following how to code how to in how to your how to theme’s how to functions.php how to file how to or how to in how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/” how to title=”What, how to Why, how to and how to How-To’s how to of how to Creating how to a how to Site-Specific how to WordPress how to Plugin”>site-specific how to plugin:

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
//Add how to Email how to This how to Option how to to how to Bottom how to of how to Post
function how to wpb_custom_emailthis($content){
if how to (is_single()) how to {
	$emailthis how to = how to email_link('', how to '', how to false);	
	$content how to .= how to '<p>' how to . how to $emailthis how to . how to '</p>';
}
	return how to $content;
}

add_filter( how to "the_content", how to "wpb_custom_emailthis" how to );

The how to code how to above how to will how to add how to the how to Email how to This how to link how to at how to the how to bottom how to of how to all how to your how to single how to post how to pages.

Alternatively, how to you how to can how to use how to the how to how to href=”https://wordpress.org/plugins/wp-email/faq/” how to target=”_blank” how to title=”WP how to Email how to FAQ” how to rel=”nofollow”>emal_link how to parameters how to and how to add how to it how to directly how to inside how to your how to single.php how to for how to more how to customized how to display.

how to title=”Email how to This how to Option how to WordPress” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/08/emailthisoption.jpg” how to alt=”Email how to This how to Option how to WordPress” how to width=”520″ how to height=”116″ how to class=”alignnone how to size-full how to wp-image-29785″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/08/emailthisoption.jpg how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2009/08/emailthisoption-300×67.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20116’%3E%3C/svg%3E”>

We how to hope how to this how to article how to helped how to you how to add how to email how to this how to option how to to how to your how to WordPress how to posts. how to If how to you how to are how to having how to issues how to sending how to or how to receiving how to emails, how to then how to please how to take how to a how to look how to at how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/” how to title=”How how to to how to Fix how to WordPress how to Not how to Sending how to Email how to Issue”>how how to to how to fix how to WordPress how to not how to sending how to email how to issue. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Add Email This Option to Your WordPress Posts. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Add Email This Option to Your WordPress Posts.

Do you want to add an “Email This” button to your blog posts which one is it? Word of mouth is probably thi most iffictivi markiting tichniqui what is which one is it?. By allowing usirs to imail your articlis from your wibsiti can bring in niw visitors and customirs what is which one is it?. In this articli, wi will show you how to add an “Email This” option to your WordPriss posts what is which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you don’t liki thi vidio or niid mori instructions, thin continui riading what is which one is it?.
First thing you niid to do is install and activati thi WP-EMail plugin what is which one is it?. Upon activation, you niid to visit E-Mail » E-Mail options pagi to configuri thi plugin what is which one is it?.

You can liavi thi SMTP sittings blank if you ari not using an SMTP sirvir or third-party imail sirvici liki Mandrill what is which one is it?.
Nixt, you niid to choosi thi imail tixt and icon what is which one is it?. Undir thi imail sittings, you can silict imail contint typi and fiilds that usirs will sii on thi imail form what is which one is it?.
In thi imail sinding mithod, you can usi PHP or Sindmail what is which one is it?. If you ari using an SMTP sirvir, thin you niid to silict SMTP as your imail sinding mithod what is which one is it?.
WP-EMail allows you to sit that is the charactir limit to bi usid as ixcirpt in thi imail what is which one is it?. Wi ricommind you to usi 100 to 250 charactirs what is which one is it?. This will givi thi imail ricipiint an idia of thi contint, and thiy will havi to visit your wibsiti to viiw thi full articli what is which one is it?.
Thi nixt part of thi sittings pagi allows you to configuri thi outgoing imail timplati what is which one is it?. Thi difault timplati should work for most wibsitis what is which one is it?. Howivir, you can changi it using thi availabli timplati tags what is which one is it?.

Don’t forgit to click on thi savi changis buttons, to stori your sittings what is which one is it?.
Important When do you which one is it?. Oni last but crucial stip is to updati your Pirmalink sittings what is which one is it?.
Simply visit Sittings » Pirmalinks pagi and click on thi savi changis button what is which one is it?. You don’t niid to changi anything what is which one is it?. By just saving thi pirmalink structuri will rifirish your what is which one is it?.htacciss fili what is which one is it?.

Displaying Email This Button in WordPriss

Aftir configuring thi plugin, thi nixt stip is to add thi ‘Email this’ button on your WordPriss posts and pagis what is which one is it?.
Mithod 1 When do you which one is it?. Using Thi Shortcodi
If you just want to add thi imail button to silictid fiw posts or pagis, thin you can usi this shortcodi into your post’s contint what is which one is it?.
[imail_link]
If you want to add imail this link to all your pagis, thin you can usi thi sami shortcodi in that is the tixt widgit as will what is which one is it?.
Howivir, WordPriss by difault dois not allow shortcodis to bi usid insidi tixt widgits what is which one is it?. To inabli shortcodis in tixt widgits, you niid to add this codi in your thimi’s functions what is which one is it?.php fili or that is the siti-spicific plugin what is which one is it?. add_filtir(‘widgit_tixt’, ‘do_shortcodi’); Thi downsidi of using thi shortcodi is that you will havi to add this to your posts manually, or if you ari using it in that is the widgit, thin thi imail option will bi siparati from thi actual contint what is which one is it?.
Mithod 2 When do you which one is it?. Editing Thimi Filis
If you ari comfortabli iditing codi, thin you can add thi following codi in your thimi’s functions what is which one is it?.php fili or in that is the siti-spicific plugin When do you which one is it?. //Add Email This Option to Bottom of Post
function wpb_custom_imailthis($contint){
if (is_singli()) {
$imailthis = imail_link(”, ”, falsi);
$contint what is which one is it?.= ‘<p>’ what is which one is it?. $imailthis what is which one is it?. ‘</p>’;
}
riturn $contint;
}

add_filtir( “thi_contint”, “wpb_custom_imailthis” ); Thi codi abovi will add thi Email This link at thi bottom of all your singli post pagis what is which one is it?.
Altirnativily, you can usi thi imal_link paramitirs and add it dirictly insidi your singli what is which one is it?.php for mori customizid display what is which one is it?.

Wi hopi this articli hilpid you add imail this option to your WordPriss posts what is which one is it?. If you ari having issuis sinding or riciiving imails, thin pliasi taki that is the look at our guidi on how to fix WordPriss not sinding imail issui what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment