How to Send Email in WordPress using the Gmail SMTP Server
Key Takeaways
Sends email in WordPress using the Gmail SMTP server and the WP Mail SMTP plugin
Full Transcript
are you looking for a reliable way to send emails from your WordPress website we'll keep watching because in this video you'll learn how to send email in WordPress using the Gmail SMTP server SMTP or Simple Mail Transfer Protocol is the industry standard for sending emails and since it uses proper authentication it increases your email deliverability basically using Gmail SMTP server keeps your emails from going to spam to use the Gmail SMTP server you can either use it with your free gmail account like say Jane Smith @ gmail.com or you can use the G Sweet paid plan where you get your own email address with your domain name like say Jane Smith at my site com you'll want to decide which way you want to go but everything else in this tutorial will be the same whether you have the free or the paid so if you're ready let's get started to get things set up on your website we'll be installing a plug-in called WP male SMTP plugin to do that let's head over to our wordpress dashboard we'll go down to plugins area add new in the search box let's type in WP email SMTP this is the one we want buy WP forms so let's click install now once you install it you'll also want to make sure you activate it once it's activated you can see settings down here or if you ever need to go to it afterwards you can go to settings WP mail SMTP here now we need to set it up in the from email add the email address that is set up with your gmail account you also want to put in your from under mailer since we're using Gmail let's select the gmail account hit the set the return path to match the from email and now let's scroll down because we need to fill out this information here to get the client ID and client secret we need to create a project in the Google developers console area so we'll open up a new tab if you haven't created any projects then you'll have a button here to say create project otherwise you can go up here and click the plus button to create a new project and click create now we need to enable the API and services so let's scroll down we're looking for the enable API and credentials from here we need to find the one that we're looking for you want to enable the Gmail API so let's enable that here and click enable next we need to create credentials for this so click on the button for create credentials from here you want to make sure web browser and JavaScript is selected and then where what data will be accessing you need to select user data then we need to do what credentials do I need let's give this a name under authorize JavaScript origins enter your web address here and for this authorized redirect URIs we need to go back over to our WordPress dashboard and copy this information go back over right click in the authorized redirect and paste now that we've done all that let's click create client ID now to setup the OAuth consent screen you need to add the email address that will be used and add the product name that will be shown to users this is usually just you so alright once we're done with that let's click continue from here we can copy our client ID so we'll copy that head back over to our dashboard here we can paste that and we're good but we still need the client secret so let's head back over and we'll say done from here we can come over here and click the edit button and then I'll bring up our client ID in our client secret from here we can get our client secret make sure that you only copy the data and not any accidental extra spaces so once you copy that head back over to client secret and paste that in there now we can save our set and now when we scroll down we can say allow the plugin to send emails using your Google account so once I click that you'll see the screen to authorize the website to use your email address let's allow that once you've done that you'll see a success notification saying that the API project is now connected to our website and now you're all set up you can even send an email test to make sure everything works correctly now there's a second method that you can use and that setting up the Gmail SMTP as the SMTP sender this will allow you to manually connect your Gmail's SMTP servers to send for your WordPress emails it is not as secure as the OAuth so we definitely recommend the OAuth but it's a way that you can get through it if you need to to do that let's head back over to our settings area and make sure you enter your email and your from name correctly and instead of using the Google will do other smtp we'll scroll down to our SMTP information and you'll need to fill out this information from Google for the SMTP host you need to setup smtp.gmail.com use the port 465 we want encryption keep this on by default for authentication let's turn that on and from here you'll need to add your username and password this is your Gmail or your or this could be your G sweet personalized domain name as well setup the password that you use for your email account and save settings now no matter which version you use you can always do a test email so we'll do a test email to make sure that there was no problem can you see once you send a test email you'll get a notification that it was sent successfully did you learn something from today's video if so subscribe to our YouTube channel and we'll send more helpful tips to help you manage your WordPress website and thanks for watching
Original Description
Newer video https://www.youtube.com/watch?v=qlWrvNn85kY
Having trouble sending and receiving emails from your WordPress site? We've helped many users solve this error easily and will walk you through how in this video.
The easy way to solve this is by sending emails from WordPress using the Gmail SMTP server. With this video we will show you how to send email in WordPress using the Gmail SMTP server.
In this tutorial, we will walk you through:
- How to install the Gmail SMTP plugin
- How to add the required settings
- How to set up the Google API
-- How to add your credentials
- How to test emails sent from your site
- How to use Gmail SMTP for a second method
By default WordPress uses PHP to send emails which can cause them to be flagged for spam, the simplest method to prevent this would be to use SMTP.
We will be using Gmail for the SMTP which will require you to create an application at the Google Developers Console website:
https://www.google.com/accounts/Logout?continue=https://console.developers.google.com/start/api?id=gmail
What we will need to create the API is the Authorized redirect URI found in the plugin settings and with that we will be able to add the final three required settings for the plugin:
1. The client ID
2. The client secret
3. Click the authorize emails using your Google account button
If you do not want to use this method there is a less secure method using SMTP without the API that we will walk you through.
Text version of this tutorial
http://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/
If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.
Check us out on Facebook
https://www.facebook.com/wpbeginner
Follow us on Twitter
http://twitter.com/wpbeginner
Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com #WordPress #WordPressTutorial #WordPressTips
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from WPBeginner - WordPress Tutorials · WPBeginner - WordPress Tutorials · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
How to Add Google Search in a WordPress Site
WPBeginner - WordPress Tutorials
How to Display Simple Notices in WordPress
WPBeginner - WordPress Tutorials
How to Bulk Move Posts to Categories and Tags in WordPress
WPBeginner - WordPress Tutorials
How to Create A Question and Answers Site in WordPress
WPBeginner - WordPress Tutorials
How to Add a Subtitle to Posts and Pages in WordPress
WPBeginner - WordPress Tutorials
How to Add a Caption to Images in WordPress
WPBeginner - WordPress Tutorials
How to Show Latest Videos From a YouTube Channel in WordPress
WPBeginner - WordPress Tutorials
How to Check Grammar and Spelling Mistakes in WordPress
WPBeginner - WordPress Tutorials
How to Send A Custom Welcome Email to New Users in WordPress
WPBeginner - WordPress Tutorials
How to Add a Custom Comment Form Title in WordPress
WPBeginner - WordPress Tutorials
How to Add a News Ticker in WordPress
WPBeginner - WordPress Tutorials
How to Add a Full Screen Background Image in WordPress
WPBeginner - WordPress Tutorials
How to Fix Image Upload Issue in WordPress
WPBeginner - WordPress Tutorials
How to Show and Hide Text in WordPress Posts with the Toggle Effect
WPBeginner - WordPress Tutorials
How to Show Page Templates in WordPress Dashboard
WPBeginner - WordPress Tutorials
How to Restrict WordPress Site Access by IP or Logged In Users
WPBeginner - WordPress Tutorials
How to Add Google Translate in WordPress
WPBeginner - WordPress Tutorials
How to Add Custom Buttons with Post Editor Buttons in WordPress
WPBeginner - WordPress Tutorials
How to Fix Featured Images Appearing Twice in WordPress Posts
WPBeginner - WordPress Tutorials
How to Add Tables in WordPress Posts and Pages No HTML Required
WPBeginner - WordPress Tutorials
How to Change the WordPress Database Prefix to Improve Security
WPBeginner - WordPress Tutorials
How to Turn Off Related YouTube Videos in WordPress
WPBeginner - WordPress Tutorials
How to Receive WordPress Emails from Localhost
WPBeginner - WordPress Tutorials
How to Split WordPress Posts into Multiple Pages
WPBeginner - WordPress Tutorials
How to Update URLs When Moving Your WordPress Site
WPBeginner - WordPress Tutorials
How to Crop, Rotate, Scale, and Flip Images in WordPress
WPBeginner - WordPress Tutorials
Image Alt Text vs Image Title in WordPress
WPBeginner - WordPress Tutorials
How to Add Staff Member Profiles in WordPress with Staffer
WPBeginner - WordPress Tutorials
How to Add Custom Fields to Comments Form in WordPress
WPBeginner - WordPress Tutorials
How to Add New Users and Authors to Your WordPress Blog
WPBeginner - WordPress Tutorials
How to Fix WordPress Website Not Updating Right Away
WPBeginner - WordPress Tutorials
How to Show Live Preview of Links in WordPress
WPBeginner - WordPress Tutorials
How to Add Image Icons With Navigation Menus in WordPress
WPBeginner - WordPress Tutorials
How to Use Multiple Themes for Pages in WordPress
WPBeginner - WordPress Tutorials
How to Fix Missing Admin Bar Issue in WordPress
WPBeginner - WordPress Tutorials
How to Add Tabbed Content in WordPress Posts and Pages
WPBeginner - WordPress Tutorials
How to Create Custom Taxonomies in WordPress
WPBeginner - WordPress Tutorials
How to Display a List of Child Pages For a Parent Page in WordPress
WPBeginner - WordPress Tutorials
How to Fix Error Too Many Redirects Issue in WordPress
WPBeginner - WordPress Tutorials
What is the Difference Between Posts vs Pages in WordPress
WPBeginner - WordPress Tutorials
How to Allow User Log In with Email in WordPress
WPBeginner - WordPress Tutorials
How to Display WordPress Widgets in Columns
WPBeginner - WordPress Tutorials
How to Easily Replace Image and Media Files in WordPress
WPBeginner - WordPress Tutorials
How to Add Featured Video Thumbnails in WordPress
WPBeginner - WordPress Tutorials
How to Create a Photo Gallery with Albums in WordPress
WPBeginner - WordPress Tutorials
How to Easily Add Lazy Loading for Videos in WordPress
WPBeginner - WordPress Tutorials
How to Add an Audio Music Player Widget in WordPress
WPBeginner - WordPress Tutorials
How to Create a Wiki Knowledge Base Using WordPress
WPBeginner - WordPress Tutorials
Adding a Post Rating System in WordPress with WP PostRatings
WPBeginner - WordPress Tutorials
How to Clean Up Your WordPress Database for Improved Performance
WPBeginner - WordPress Tutorials
How to Add Character Limit to Post Titles in WordPress
WPBeginner - WordPress Tutorials
How to Add a Private Messaging System in WordPress
WPBeginner - WordPress Tutorials
WWW vs non WWW and Which is Better For WordPress SEO
WPBeginner - WordPress Tutorials
How to Add Voice Search Capability to your WordPress
WPBeginner - WordPress Tutorials
How to Show Real Time Online Users in WordPress
WPBeginner - WordPress Tutorials
How to Create a Duplicate Menu in WordPress with One Click
WPBeginner - WordPress Tutorials
How to Hide a Post From Home Page in WordPress
WPBeginner - WordPress Tutorials
How to Add A Restaurant Reservation System in WordPress
WPBeginner - WordPress Tutorials
How to Add a Border Around an Image in WordPress
WPBeginner - WordPress Tutorials
Beginner’s Guide How to Back Date Your WordPress Posts
WPBeginner - WordPress Tutorials
More on: Tool Use & Function Calling
View skill →Related Reads
📰
📰
📰
📰
Claude HUD: Adding a Terminal Heads-Up Display to Claude Code
Dev.to AI
AI Resume Generator That Gets Shortlisted
Dev.to · Amrendra N Mishra
AI Is Changing What Software Is Worth Building
Dev.to · Kshitij Chaudhary
I Edited One Photo with AI — Instagram Immediately Flagged It. Here’s What’s Really Happening
Medium · AI
🎓
Tutor Explanation
DeepCamp AI