<?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; use gmail for wordpress emails</title>
	<atom:link href="http://www.wpwife.com/category/use-gmail-for-wordpress-emails/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 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>
