<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; how to send email in wordpress using gmail smtp server</title>
	<atom:link href="http://www.wpwife.com/category/how-to-send-email-in-wordpress-using-gmail-smtp-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Send Email in WordPress using the Gmail SMTP Server</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server#comments</comments>
		<pubDate>Wed, 31 Jan 2018 15:00:25 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[contact form 7 not sending to gmail]]></category>
		<category><![CDATA[gravity forms not sending to gmail]]></category>
		<category><![CDATA[how to send email in wordpress using gmail smtp server]]></category>
		<category><![CDATA[wordpress gmail not working]]></category>
		<category><![CDATA[wordpress gmail smtp server]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wp mail smtp]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=3764</guid>
		<description><![CDATA[
<p>Are you having trouble sending emails from your WordPress site? One easy way to solve this is by sending WordPress emails using the Gmail SMTP server. In this article, we will show you how to send emails from your WordPress site using the Gmail SMTP&#8230;&#160;<strong><a href="http://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/">Read More &#187;</a></strong></p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/">How to Send Email in WordPress using the Gmail SMTP Server</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you having trouble sending emails from your WordPress site? One easy way to solve this is by sending WordPress emails using the Gmail SMTP server. In this article, we will show you how to send emails from your WordPress site using the Gmail SMTP server. </p>
<p><img title="Send WordPress emails using Gmail SMTP server" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/gmailsmtpforwp-1.png" alt="Send WordPress emails using Gmail SMTP server" width="550" height="340" class="alignnone size-full wp-image-49396" /></p>
<h4>Why and When You Need Gmail SMTP Server for WordPress Emails</h4>
<p>Your WordPress site sends emails to notify you of <a href="http://www.wpbeginner.com/beginners-guide/how-to-add-new-users-and-authors-to-your-wordpress-blog/" title="How to Add New Users and Authors to Your WordPress Blog">new user registration</a>, <a href="http://www.wpbeginner.com/beginners-guide/forgot-your-password-how-to-recover-a-lost-password-in-wordpress/" title="Forgot your Password? How to Recover a Lost Password in WordPress">lost password reset</a>, automatic updates, and even notifications from your <a href="http://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/" title="5 Best Contact Form Plugins for WordPress Compared">contact forms</a>.</p>
<p>By default, WordPress uses the <a href="http://www.wpbeginner.com/glossary/php/" title="PHP">PHP</a> mail function to send out email notifications. However, this function does not work as expected due to a number of reasons. </p>
<p>Most <a href="http://www.wpbeginner.com/wordpress-hosting/" title="How to Choose The Best WordPress Hosting?">WordPress hosting</a> companies restrict usage of this function to prevent abuse and spam. </p>
<p><a href="http://www.wpbeginner.com/glossary/spam/" title="What is Spam in WordPress?">Spam</a> filters on popular email service providers check incoming emails to monitor if they are sent from authentic mail servers. Default WordPress emails fail this check and sometimes may not even make it to the spam folder. </p>
<p>SMTP (Simple Mail Transfer Protocol) is the industry standard for sending emails. Unlike PHP mail function, SMTP uses proper authentication which increases email deliverability. </p>
<p>Gmail provides SMTP service that you can use to send out emails from your WordPress site. If you just want to send <a href="http://www.wpbeginner.com/plugins/how-to-add-better-custom-notifications-in-wordpress/" title="How to Add Better Custom Notifications in WordPress">WordPress notification emails</a> to yourself and few users on your site, then Gmail SMTP servers are the best option. </p>
<p>However, if you are planning on sending <a href="http://www.wpbeginner.com/opinion/why-you-should-never-use-wordpress-to-send-newsletter-emails/" title="Why You Should Never Use WordPress to Send Newsletter Emails">newsletter emails</a> using WordPress, then you should use a mass emailing service provider, like MailGun or SendGrid. </p>
<h4>Free vs Paid Gmail SMTP Service for WordPress</h4>
<p>You can use your free Gmail account to send out WordPress emails. However, for better deliverability, we recommend using paid <a href="http://www.wpbeginner.com/refer/google-apps-work/"  title="Google Apps for Work" rel="nofollow">Google Apps for Work</a> with Gmail. </p>
<p>With Google Apps for Work, you get your own <a href="http://www.wpbeginner.com/beginners-guide/how-to-setup-a-professional-email-address-with-gmail-and-google-apps/" title="How to setup a professional branded email address with Google Apps for Work">professional branded email address</a> such as (name@yoursite.com). </p>
<p>Google Apps require you to add MX records to your domain name which means that your emails will appear to be coming from your own domain name boosting authenticity and ensuring better deliverability. </p>
<p>We use Google Apps for Work for WPBeginner and can honestly say it’s the best.</p>
<h4>How to Send WordPress Emails Using Gmail SMTP Server</h4>
<p>If you decided to use <a href="http://www.wpbeginner.com/refer/google-apps-work/"  title="Google Apps for Work" rel="nofollow">Google Apps for Work</a>, then you first need to set up your domain to work with Google Apps. We have a step by step tutorial on how to setup a <a href="http://www.wpbeginner.com/beginners-guide/how-to-setup-a-professional-email-address-with-gmail-and-google-apps/" title="How to Setup a Professional Email Address with Google Apps and Gmail">professional email address with Google Apps and Gmail</a>. </p>
<p>Rest of the instructions are the same whether you are using paid or free Gmail account. </p>
<p>First thing you need to do is install and activate the <a href="https://wordpress.org/plugins/wp-mail-smtp/"  title="WP Mail SMTP" rel="nofollow">WP Mail SMTP</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="Step by Step Guide to Install a WordPress Plugin for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to visit <strong>Settings &raquo; WP Mail SMTP</strong> page to configure the plugin settings.</p>
<p><img title="WP Mail SMTP Settings" src="http://cdn.wpbeginner.com/wp-content/uploads/2016/03/wpmailsmtp-settings.png" alt="WP Mail SMTP Settings" width="550" height="393" class="alignnone size-full wp-image-49019" /></p>
<p>First you need to make sure that you use your Gmail email address in the &#8216;From Email&#8217; field. Next, you need to provide the sender name. </p>
<p>WP Mail SMTP plugin offers two ways to connect your WordPress site to the Gmail servers. </p>
<p>The first method uses OAuth Authentication. This is a more secure method to send emails using Gmail servers. </p>
<p>The second method is by entering Gmail SMTP settings manually. This method is not recommended because it is less secure.  </p>
<p>That being said, let&#8217;s set up WordPress to use Gmail SMTP for sending emails. </p>
<h4>Method 1: Setting up Gmail to Send WordPress Emails using OAuth Protocol</h4>
<p>This method is recommended for all users. It is more secure and once you set it up, you&#8217;ll never have to do that again.</p>
<p>You need to start by selecting Gmail as your mailer and set the return path to be the same as sender. </p>
<p><img title="Select Gmail and set return path" src="http://cdn4.wpbeginner.com/wp-content/uploads/2016/03/selectgmailsender.png" alt="Select Gmail and set return path" width="550" height="245" class="alignnone size-full wp-image-49020" /></p>
<p>Next, you will see the option to enter your Client ID, Client Secret, and a URL in &#8216;Authorized redirect URI&#8217; field. </p>
<p>Let&#8217;s set up these fields. </p>
<h4>Creating an App and Generate API Keys for Gmail</h4>
<p>Visit the <a href="https://console.developers.google.com/apis/dashboard"  title="Google Developers Console" rel="nofollow">Google Developers Console</a> website and create a new project. </p>
<p><img title="Create a new Google Developer Console project" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/create-gdc-project.png" alt="Create a new Google Developer Console project" width="550" height="179" class="alignnone size-full wp-image-49023" /></p>
<p>If you don&#8217;t see the blue button to create a project, then you can also click on select a project drop down and create a new project. </p>
<p>You&#8217;ll be asked to provide a name for your project. Give it a memorable name, so that you can easily recognize it in the future. </p>
<p><img title="Name your project" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/nameproject.png" alt="Name your project" width="550" height="257" class="alignnone size-full wp-image-49024" /></p>
<p>After that, click on the create button to continue. </p>
<p>Developer console will now create your project and take you to its dashboard. Google offer developers access to many of their APIs and services. You need to enable the APIs that you will be needing for this project. </p>
<p><img title="Enable APIs" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/enable-apis.png" alt="Enable APIs" width="550" height="221" class="alignnone size-full wp-image-49025" /></p>
<p>Click on Enable APIs and services button to continue. </p>
<p>This will bring you to the APIs library page. Next, you need to type Gmail in the search box to quickly find the Gmail API and click to select it. </p>
<p><img title="Select Gmail API" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/selectgmailapi.png" alt="Select Gmail API" width="550" height="267" class="alignnone size-full wp-image-49026" /></p>
<p>You will now see an overview of the API and what it can do. Simply click on the &#8216;Enable&#8217; button to continue. </p>
<p><img title="Enale Gmail API" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/enablegmailapi.png" alt="Enale Gmail API" width="550" height="289" class="alignnone size-full wp-image-49027" /></p>
<p>Now that your API is enabled, the next step is to create credentials that you can use in your WP Mail SMTP plugin settings. </p>
<p>Click on the create credentials button to continue. </p>
<p><img title="Create credentials" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/createcredentials.png" alt="Create credentials" width="550" height="244" class="alignnone size-full wp-image-49028" /></p>
<p>On the next screen, you will need to select <em>&#8216;Web browser JavaScript&#8217;</em> in <em>&#8216;Where you&#8217;ll be calling the API from&#8217;</em> field. After that click on the &#8216;User Data&#8217; option.</p>
<p><img title="API credentials step 1" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/api-creds1.png" alt="API credentials step 1" width="550" height="338" class="alignnone size-full wp-image-49029" /> </p>
<p>To continue, click on the &#8216;What credentials do I need?&#8217; button. </p>
<p>You will now be asked to provide a name for your OAuth client name. You can enter &#8216;WP Mail SMTP&#8217; here. </p>
<p><img title="API Credentials step 2" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/api-creds2.png" alt="API Credentials step 2" width="550" height="322" class="alignnone size-full wp-image-49031" /></p>
<p>Under JavaScript origins field, you need to add your website&#8217;s domain name. Next, you need to copy and paste the authorized redirect URL from WP Mail SMTP plugin settings. </p>
<p>After that click on the &#8216;Create client ID&#8217; button to continue. </p>
<p>Next, you need to enter a name for OAuth consent screen. You can put the plugin&#8217;s name here. </p>
<p><img title="Ouath consent screen" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/api-creds3.png" alt="Ouath consent screen" width="550" height="226" class="alignnone size-full wp-image-49032" /></p>
<p>After entering the details, click on the continue button and the developer console will show your client ID. You can copy and paste this in the WP Mail SMTP plugin&#8217;s settings page. However, you will still need to add your client secret key.</p>
<p><img title="Getting your client ID" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/clientid.png" alt="Getting your client ID" width="550" height="315" class="alignnone size-full wp-image-49033" /></p>
<p>Go ahead and click on the Done button to move on.</p>
<p>You will now be taken to your project&#8217;s credentials page. You will see your recently created credentials listed there. You need to click on the edit icon next to your credentials to continue. </p>
<p><img title="Edit credentials" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/editcreds.png" alt="Edit credentials" width="550" height="286" class="alignnone size-full wp-image-49034" /> </p>
<p>This will bring you to the edit credentials page where you will be able to see your client secret key. You need to copy and paste the key in your plugin&#8217;s settings page. </p>
<p><img title="Client secret key" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/clientsecret.png" alt="Client secret key" width="550" height="255" class="alignnone size-full wp-image-49035" /></p>
<p>Return back to plugin&#8217;s settings page in your WordPress admin area. Now that you have both client ID and client secret keys, you need to click on the save settings button to continue. </p>
<p><img title="Save client credentials in plugin settings" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/saveclientcreds.png" alt="Save client credentials in plugin settings" width="550" height="301" class="alignnone size-full wp-image-49036" /></p>
<p>The plugin will now store your settings and reload the page. After that you need to scroll down to the bottom of the settings page and click on the &#8216;Allow plugin to send emails using your Google account&#8217; button. </p>
<p><img title="Allow plugin to send emails" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/allowplugin.png" alt="Allow plugin to send emails" width="550" height="286" class="alignnone size-full wp-image-49037" /></p>
<p>This will take you to your account on Google, and you will be asked to give the website permission to send emails on your behalf. </p>
<p><img title="Allow Gmail" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/allowgmail.png" alt="Allow Gmail" width="550" height="348" class="alignnone size-full wp-image-49038" /></p>
<p>Click on Allow button to give permissions. </p>
<p>After that, you will be redirected back to your website where you will see a success message. </p>
<p><img title="Connected successfully" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/connectedsuccess.png" alt="Connected successfully" width="550" height="253" class="alignnone size-full wp-image-49039" /></p>
<h4>Method 2: Setting up Gmail SMTP as SMTP Sender</h4>
<p>This method allows you to manually connect to Gmail&#8217;s SMTP servers to send your WordPress emails. </p>
<p>First, you need to visit <strong>Settings &raquo; WP Mail SMTP</strong> page to configure the plugin settings. </p>
<p>You need to start by providing the Gmail address you want to use in the From email field, and your name in the name field.</p>
<p><img title="Gmail SMTP" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/gmail-smtp.png" alt="Gmail SMTP" width="550" height="301" class="alignnone size-full wp-image-49041" /></p>
<p>Next, you need to select &#8216;Other SMTP&#8217; as your mailer and check the box next to return path. </p>
<p>After that, scroll down to the Other SMTP section to configure more settings. </p>
<p><img title="Gmail SMTP settings for WP Mail SMTP plugin" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/gmailsmtp-wpmailsmtp.png" alt="Gmail SMTP settings for WP Mail SMTP plugin" width="550" height="359" class="alignnone size-full wp-image-49042" /></p>
<p>Here is the exact configuration you need to add in the plugin settings: </p>
<ul>
<li>SMTP Host: smtp.gmail.com</li>
<li>SMTP Port: 465</li>
<li>Encryption: Use SSL encryption</li>
<li>Authentication: Turn on authentication</li>
<li>Username: Your complete Gmail address, e.g. john.smith@yourdomain.com or john.smith@gmail.com</li>
<li>Password: Password of your Gmail account</li>
</ul>
<p>Once you are done, click on the save changes button to store your settings. </p>
<p>That&#8217;s all, you have successfully setup WP Mail SMTP to use Gmail SMTP servers. </p>
<h4>Testing Your WP Mail SMTP Settings</h4>
<p>WP Mail SMTP plugin allows you to test your email settings, so you can make sure that everything is working properly.</p>
<p>You need to visit <strong>Settings &raquo; WP Mail SMTP</strong> page and click on the &#8216;Email Test&#8217; tab. Simply provide an email address that you can access in the send to field and click on the send email button. </p>
<p><img title="Send test email" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/sendtestemail-1.png" alt="Send test email " width="550" height="322" class="alignnone size-full wp-image-49043" /></p>
<p>You will see a success message. You can now check your inbox to see a message with the subject line &#8216;WP Mail SMTP: Test Email to&#8230;&#8217;. </p>
<p>That&#8217;s all, you have successfully setup your WordPress site to send emails using Gmail SMTP servers.  </p>
<h4>Troubleshooting Gmail SMTP Not Working Issues</h4>
<p>We have seen users encounter few issues when using Gmail SMTP with certain <a href="http://www.wpbeginner.com/the-truth-about-shared-wordpress-web-hosting/" title="The Truth About Shared WordPress Web Hosting">shared hosting</a> configurations.</p>
<p>Take the following steps to fix the Gmail SMTP issue:</p>
<ol>
<li>Login to your cPanel account and create an email account that matches your Google apps email address. This might seem strange because you&#8217;re not using your server for emails. This step basically tricks your server into believing that you&#8217;re sending the email through the server.</li>
<li>In your cPanel account, go to the MX Records and change the MX routing from automatic to remote. It might be a little tricky to find since each host now has custom cPanel interface. You need to look for a small link next to MX that says Email Routing: Remote Mail Exchanger.</li>
<li>After that log back into your WordPress site and send a test email.</li>
</ol>
<p>We hope this article helped you learn how to send email in WordPress using the Gmail SMTP server. You may also want to see our list of the <a href="http://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/" title="5 Best Contact Form Plugins for WordPress Compared">5 best contact form plugins for WordPress</a>.</p>
<p>If you liked this article, then please subscribe to our <a href="http://youtube.com/wpbeginner?sub_confirmation=1" title="WPBeginner on YouTube"  rel="nofollow">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="http://twitter.com/wpbeginner" title="WPBeginner on Twitter"  rel="nofollow">Twitter</a> and <a href="https://www.facebook.com/wpbeginner" title="WPBeginner on Facebook"  rel="nofollow">Facebook</a>.</p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/">How to Send Email in WordPress using the Gmail SMTP Server</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Fix WordPress Not Sending Email Issue</title>
		<link>http://www.wpwife.com/tutorials/how-to-fix-wordpress-not-sending-email-issue</link>
		<comments>http://www.wpwife.com/tutorials/how-to-fix-wordpress-not-sending-email-issue#comments</comments>
		<pubDate>Tue, 09 Jan 2018 11:55:35 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[how to send email in wordpress using gmail smtp server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[use gmail for wordpress emails]]></category>
		<category><![CDATA[wordpress email]]></category>
		<category><![CDATA[wordpress not sending email]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=22770</guid>
		<description><![CDATA[
<p>One of the most commonly asked questions on WPBeginner is how to fix WordPress not sending email problem. Many of our beginner level users ask us why their contact form plugin is not sending emails, or why they are not seeing any WordPress notifications. In&#8230;&#160;<strong><a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/">Read More &#187;</a></strong></p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/">How to Fix WordPress Not Sending Email Issue</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>One of the most commonly asked questions on WPBeginner is how to fix WordPress not sending email problem. Many of our beginner level users ask us why their <a href="http://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/" title="5 Best Contact Form Plugins for WordPress Compared">contact form plugin</a> is not sending emails, or why they are not seeing any WordPress notifications. In this article, we will show you how to fix WordPress not sending email issue.</p>
<p><img title="fixingwpemail" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/fixingwpemail.png" alt="" width="550" height="340" class="alignnone size-full wp-image-49128" /></p>
<h4>Why You Are Not Getting Emails from Your WordPress Site</h4>
<p>The most common reason for this is that your <a href="http://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting?">WordPress hosting</a> server is not configured to use <a href="http://www.wpbeginner.com/glossary/php/" title="PHP">PHP</a> mail() function.</p>
<p>Even if they would allow it to work, many email service providers use a variety of tools to reduce email spam. These tools often try to detect that an email is originating from the location it claims to be originating from, and often emails sent by WordPress websites fail this test. </p>
<p>In such cases, when an email is sent out from your WordPress site, it never even makes into spam folder of the destination. This is why we recommend not <a href="http://www.wpbeginner.com/opinion/why-you-should-never-use-wordpress-to-send-newsletter-emails/" title="Why You Should Never Use WordPress to Send Newsletter Emails">using WordPress to send your email newsletter</a>.</p>
<p>This is also the reason why that we recommend using SMTP to send emails in WordPress. SMTP (Simple Mail Transfer Protocol) is the industry standard for sending emails. Unlike PHP mail function, SMTP uses proper authentication which increases email deliverability.</p>
<p>There are many different SMTP services available, but in this article we will show only two that we recommend: MailGun and Gmail.</p>
<h4>Sending Your WordPress Emails Using Mailgun</h4>
<p>Mailgun is a popular email service provider. They allow website owners to send large amounts of emails with high deliverability.</p>
<p>As a dedicated email service provider, they spend a lot of money and time on making sure that your email reaches its destination.</p>
<p>While Mailgun is a paid service, it offers first 10,000 emails for free every month. That’s more than enough for most folks who just <a href="http://www.wpbeginner.com/start-a-wordpress-blog/" title="Ultimate Guide: How to Start a WordPress Blog (Step by Step)">started their blog</a> or <a href="http://www.wpbeginner.com/guides/" title="Ultimate Guide: How to Make a Website in 2018 – Step by Step Guide (Free)">website</a>.</p>
<p>Here is how to setup your WordPress site to use Mailgun for sending emails.</p>
<p>First you need to signup on the <a href="https://www.mailgun.com/"  title="Mailgun" rel="nofollow">Mailgun website</a>. After signing up, you need to click on the “Add your domain” button.</p>
<p><img title="Add your domain to Mailgun" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/mailgun-add-domain.png" alt="Add your domain to Mailgun" width="520" height="304" class="alignnone size-full wp-image-49129" /></p>
<p>You will now see an add domain page. Here you need to add a subdomain on your WordPress website’s domain name. For example, mail1.yourdomain.com.</p>
<p>You can create a new subdomain on your existing domain name by following the instructions below.</p>
<p>First, you need to visit the cPanel dashboard of your hosting account. Next, click on the subdomains icon under the domains section.</p>
<p><img title="cPanel subdomains" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/cpanel-subdomains.png" alt="cPanel subdomains" width="520" height="120" class="alignnone size-full wp-image-49130" /></p>
<p>On the next page, you need to enter your subdomain and then select your root domain from the drop down menu.</p>
<p><img title="Enter your subdomain" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/entersubdomain.png" alt="Enter your subdomain" width="520" height="190" class="alignnone size-full wp-image-49131" /></p>
<p>After that click on the create button, and you will see a success message that your subdomain has been created.</p>
<p>You can now add this subdomain on Mailgun’s add domain page. After you add the domain, Mailgun will show you a few DNS records.</p>
<p><img title="Mailgun DNS records" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/mgdnsrecords.png" alt="Mailgun DNS records" width="520" height="217" class="alignnone size-full wp-image-49132" /></p>
<p>Switch back to your cPanel dashboard and then click on ‘Advanced DNS Zone Editor’.</p>
<p><img title="DNS zone editor" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/dnszoneeditor.png" alt="DNS zone editor" width="520" height="122" class="alignnone size-full wp-image-49133" /></p>
<p>You will be asked to select the domain for which you want to change the DNS records. Once you select your root domain name, you will see options to add new DNS records.</p>
<p>The first TXT entry will be your subdomain. You need to start by entering the subdomain in the Name field and then select TXT as record type. After that you need to add 14400 in TTL field and copy the value shown on Mailgun domain verification settings page into TXT Data field.</p>
<p><img title="Adding DNS TXT record" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/dnstxtrecord.png" alt="Adding DNS TXT record" width="520" height="162" class="alignnone size-full wp-image-49134" /></p>
<p>Repeat the process to add the other TXT record.</p>
<p>Once you are done, switch back to the cPanel dashboard and click on the MX Entry icon.</p>
<p><img title="MX Entry icon in cPanel" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/mxentrymenu.png" alt="MX Entry icon in cPanel" width="520" height="268" class="alignnone size-full wp-image-49135" /></p>
<p>You will be asked to select your root domain, then scroll down to the bottom of the page. There you will see the option to add a new MX Entry.</p>
<p>Enter the priority and destination values and click on create new record button.</p>
<p>You have successfully added your domain to Mailgun. It will need to verify that your domain has proper DNS records. This may take a while because DNS records may take sometime to update.</p>
<p>You can check the status of your domain verification by visiting the Domains page in your Mailgun account.</p>
<p>Mailgun will show active status next to your domain name once it can verify the DNS changes you made.</p>
<p><img title="Mailgun active domains" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/mailgundomains.png" alt="Mailgun active domains" width="520" height="288" class="alignnone size-full wp-image-49136" /></p>
<p>Once your domain is active, you can setup your WordPress site to start using Mailgun for sending emails.</p>
<p>First thing you need to do is install and activate the <a href="https://wordpress.org/plugins/wp-mail-smtp/"  title="WP Mail SMTP" rel="nofollow">WP Mail SMTP</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="Step by Step Guide to Install a WordPress Plugin for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to visit <strong>Settings &raquo; WP Mail SMTP</strong> to configure plugin settings. First you need to provide your sender email address and the name you want to use for the sender. </p>
<p><img title="WP Mail SMTP settings" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/wpmailsmtp-settings.png" alt="WP Mail SMTP settings" width="550" height="330" class="alignnone size-full wp-image-49145" /></p>
<p>Next, you need to select Mailgun as your mailer and check the box next to set the return path to match the from email address. </p>
<p><img title="Select Mailgun as your mailer" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/selectmailer.png" alt="Select Mailgun as your mailer" width="550" height="243" class="alignnone size-full wp-image-49146" /></p>
<p>Lastly, you need to provide your Mailgun private API key and the mailgun sub-domain. Click on the links below each field to get this information from your Mailgun account. </p>
<p><img title="API key and domain name" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/apikeydomain.png" alt="API key and domain name" width="550" height="240" class="alignnone size-full wp-image-49147" /></p>
<p>Don&#8217;t forget to click on save settings button to store your changes. </p>
<p>That’s all, you have successfully setup your WordPress site to send emails using Mailgun.</p>
<p>You can now click on the &#8216;Email Test&#8217; tab on plugin&#8217;s settings page to send a test email and see if everything is working fine. </p>
<p><img title="Email test" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/emailtest.png" alt="Email test" width="550" height="284" class="alignnone size-full wp-image-49148" /></p>
<h4>Sending WordPress Emails Using Gmail SMTP Servers</h4>
<p>Another alternative is to send your WordPress emails is using Gmail SMTP servers. You can use any regular Gmail account with this method to send out your emails. However, your email deliverability will be much better if you are using <a href="http://www.wpbeginner.com/refer/google-apps-work/" title="Google Apps for Work">Google Apps for Work</a> with your custom email address. See our guide on how to <a href="http://www.wpbeginner.com/beginners-guide/how-to-setup-a-professional-email-address-with-gmail-and-google-apps/" title="How to Setup a Professional Email Address with Google Apps and Gmail">setup a professional email address with Google Apps and Gmail</a>.</p>
<p>Whether you use paid or free Gmail address, rest of the instructions are the same.</p>
<p>First, you will need to install and activate the <a href="https://wordpress.org/plugins/wp-mail-smtp/"  title="WP Mail SMTP" rel="nofollow">WP Mail SMTP</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="Step by Step Guide to Install a WordPress Plugin for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to visit <strong>Settings &raquo; WP Mail SMTP</strong> page to configure plugin settings. First you need to provide your gmail address in the &#8216;From Email&#8217; field and the name you want to display as sender. </p>
<p><img title="WP Mail SMTP settings for Gmail" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/wpmailsmtp-gmail.png" alt="WP Mail SMTP settings for Gmail" width="550" height="290" class="alignnone size-full wp-image-49150" /></p>
<p>Next, you need to scroll down to the mailer option. There are two ways you can use Gmail servers to send WordPress emails. </p>
<p>First, method is to use Gmail APIs to send emails. This method is recommended because it is more secure and reliable. Second method is to use your Gmail account&#8217;s SMTP server manually. </p>
<p>We will show you both methods, however we recommend that you use the first method. </p>
<h4>Method 1: Setting up Gmail to Send WordPress Emails Using OAuth Protocol</h4>
<p>First, you need to select Gmail as your mailer under WP Mail SMTP settings page. Check the box next to set the return path to be the same as sender, not checking this box will make bounced and failed messages to be lost forever. </p>
<p><img title="Select Gmail as Mailer" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/selectgmailsender.png" alt="Select Gmail as Mailer" width="550" height="245" class="alignnone size-full wp-image-49151" /></p>
<p>Next, you will see the option to enter your Client ID, Client Secret, and a URL in ‘Authorized redirect URI’ field.</p>
<p><strong>Creating an App and Generate API Keys for Gmail</strong> </p>
<p>To use Gmail&#8217;s APIs for sending WordPress emails, you need to create an app and generate an API key. To do that, visit the <a href="https://console.developers.google.com/apis/dashboard"  title="Google Developers Console" rel="nofollow">Google Developers Console</a> website and create a new project.</p>
<p><img title="Create Google Developer Console project" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/create-gdc-project-1.png" alt="Create Google Developer Console project" width="550" height="179" class="alignnone size-full wp-image-49152" /></p>
<p>If you don’t see the blue button to create a project, then you can also click on &#8216;Select a project&#8217; drop down and create a new project.</p>
<p>You’ll be asked to provide a name for your project. Give it a meaningful name so that next time you are here, you can easily recognize it.</p>
<p><img title="Name your project" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/nameproject-1.png" alt="Name your project" width="550" height="257" class="alignnone size-full wp-image-49153" /></p>
<p>Click on the create button to continue.</p>
<p>Developer console will now create your project and take you to its dashboard. Google allow developers to access many of their APIs and services. Now that your project is setup, you need to enable the APIs that you will be needing.</p>
<p><img title="Enable APIs" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/enable-apis-1.png" alt="Enable APIs" width="550" height="221" class="alignnone size-full wp-image-49154" /></p>
<p>Click on Enable APIs and services button to continue.</p>
<p>This will bring you to the APIs library page. Type Gmail in the search box to quickly find Gmail API and click to select it.</p>
<p><img title="Select Gmail API" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/selectgmailapi-1.png" alt="Select Gmail API" width="550" height="267" class="alignnone size-full wp-image-49155" /></p>
<p>You will now see an overview of the API and what it can do. Simply click on the ‘Enable’ button to continue.</p>
<p><img title="Enable Gmail API" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/enablegmailapi-1.png" alt="Enable Gmail API" width="550" height="289" class="alignnone size-full wp-image-49156" /></p>
<p>Now that your API is enabled, the next step is to create credentials that you can use in your WP Mail SMTP plugin settings.</p>
<p>Click on the create credentials button to continue.</p>
<p><img title="Create credentials" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/createcredentials-1.png" alt="Create credentials" width="550" height="244" class="alignnone size-full wp-image-49157" /></p>
<p>On the next screen, you will need to select ‘Web browser JavaScript’ in ‘Where you’ll be calling the API from’ field. After that click on the ‘User Data’ option.</p>
<p><img title="api-creds1" src="http://cdn3.wpbeginner.com/wp-content/uploads/2017/12/api-creds1-1.png" alt="" width="550" height="338" class="alignnone size-full wp-image-49158" /></p>
<p>To continue, click on the ‘What credentials do I need?’ button.</p>
<p>You will now be asked to provide a name for your OAuth client name. You can enter ‘WP Mail SMTP’ here.</p>
<p><img title="Step 2 of API credentials" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/api-creds2-1.png" alt="Step 2 of API credentials" width="550" height="322" class="alignnone size-full wp-image-49159" /></p>
<p>Under JavaScript origins field, add your website’s domain name. Next, you need to copy and paste the authorized redirect URL from WP Mail SMTP plugin settings.</p>
<p>Click on ‘Create client ID’ button to continue.</p>
<p>Next, you need to enter a name for OAuth consent screen. You can put the plugin’s name here.</p>
<p><img title="API credentials step 3" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/api-creds3-1.png" alt="API credentials step 3" width="550" height="226" class="alignnone size-full wp-image-49160" /></p>
<p>Click on the continue button and developer console will show your client ID. You can copy it and paste it in WP Mail SMTP plugin’s settings page. However, you will still need client secret key.</p>
<p><img title="Getting client ID" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/clientid-1.png" alt="Getting client ID" width="550" height="315" class="alignnone size-full wp-image-49161" /></p>
<p>Click on the Done button to move on.</p>
<p>You will now be taken to your project’s credentials page. You will see your recently created credentials listed there. Click on the edit button next to your credentials. </p>
<p><img title="Edit credentials" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/editcreds-1.png" alt="Edit credentials" width="550" height="286" class="alignnone size-full wp-image-49162" /></p>
<p>This will bring you to edit credentials page where you will be able to see your client secret key. You need to copy and paste the key in your plugin’s settings page.</p>
<p><img title="Client secret key" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/clientsecret-1.png" alt="Client secret key" width="550" height="255" class="alignnone size-full wp-image-49163" /></p>
<p>Return back to plugin’s settings page in your WordPress admin area. Now that you have both client ID and client secret keys, you need to click on the save settings button to continue.</p>
<p><img title="Save Api keys" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/saveclientcreds-1.png" alt="Save Api keys" width="550" height="301" class="alignnone size-full wp-image-49164" /></p>
<p>The plugin will now store your settings and reload the page. After that you need to scroll down to the bottom of the settings page and click on the ‘Allow plugin to send emails using your Google account’ button.</p>
<p><img title="Allow plugin to connect" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/12/allowplugin-1.png" alt="Allow plugin to connect" width="550" height="286" class="alignnone size-full wp-image-49165" /></p>
<p>This will take you to your account on Google and you will be asked to give the website permission to send emails on your behalf.</p>
<p><img title="Allow WP Mail SMTP to send emails" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/allowgmail-1.png" alt="Allow WP Mail SMTP to send emails" width="550" height="348" class="alignnone size-full wp-image-49166" /></p>
<p>After that you will be redirected back to your website where you will see a success message.</p>
<p>You have successfully set up WordPress to use Gmail SMTP servers for sending emails using the OAuth protocol. You can now click on the &#8216;Email Test&#8217; tab on plugin&#8217;s settings page to send a test email and see if everything is working fine. </p>
<p><img title="Email test" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/emailtest.png" alt="Email test" width="550" height="284" class="alignnone size-full wp-image-49148" /></p>
<h4>Method 2: Setting Gmail to Send WordPress Emails Using SMTP</h4>
<p>This method allows WP Mail SMTP to manually connect to Gmail&#8217;s SMTP servers for sending WordPress emails.</p>
<p>First, you need to visit <strong>Settings &amp;raquo WP Mail SMTP</strong> page to configure the plugin settings.</p>
<p>Provide the Gmail address you want to use as From email field and your name as from name field.</p>
<p><img title="Gmail SMTP" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/12/gmail-smtp-1.png" alt="Gmail SMTP" width="550" height="301" class="alignnone size-full wp-image-49173" /></p>
<p>Select ‘Other SMTP’ as your mailer and check the box next to return path.</p>
<p>Scroll down to Other SMTP section to configure more settings.</p>
<p><img title="Gmail SMTP settings for WP Mail SMTP" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/gmailsmtp-wpmailsmtp-1.png" alt="Gmail SMTP settings for WP Mail SMTP" width="550" height="359" class="alignnone size-full wp-image-49174" /></p>
<p>Here is how to fill out the plugin settings:</p>
<ul>
<li>SMTP Host: smtp.gmail.com</li>
<li>SMTP Port: 465</li>
<li>Encryption: Use SSL encryption</li>
<li>Authentication: Turn on authentication</li>
<li>Username: Your complete Gmail address, e.g. john.smith@yourdomain.com or john.smith@gmail.com</li>
<li>Password: Password of your Gmail account</li>
</ul>
<p>Click on the save changes button to store your settings.</p>
<p>That’s all, you have successfully setup WP Mail SMTP to use Gmail SMTP servers.</p>
<p>You can now click on the &#8216;Email Test&#8217; tab on plugin&#8217;s settings page to send a test email and see if everything is working fine. </p>
<p><img title="Email test" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/12/emailtest.png" alt="Email test" width="550" height="284" class="alignnone size-full wp-image-49148" /></p>
<p>We hope this article helped you learn how to fix WordPress not sending email issue, You may also want to see our list of the most <a href="http://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="25 Most Common WordPress Errors and How to Fix Them">common WordPress errors and how to fix them</a>. </p>
<p>If you liked this article, then please subscribe to our <a href="http://youtube.com/wpbeginner?sub_confirmation=1" title="WPBeginner on YouTube"  rel="nofollow">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="http://twitter.com/wpbeginner" title="WPBeginner on Twitter"  rel="nofollow">Twitter</a> and <a href="https://www.facebook.com/wpbeginner" title="WPBeginner on Facebook"  rel="nofollow">Facebook</a>.</p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/">How to Fix WordPress Not Sending Email Issue</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-fix-wordpress-not-sending-email-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
