📧 How to Send Email in WordPress using the Gmail SMTP Server 📤
Vložit
- čas přidán 18. 11. 2020
- Are you having trouble sending and receiving emails from your WordPress site?
Get WPForms wpforms.com/wpbeginner
One easy way to solve this by sending WordPress emails using the Gmail SMTP server. In this video, we'll show you how to send emails from your WordPress site using the Gmail SMTP server.
This video brought to you by WPForms, the most beginner friendly WordPress form plugin, take a look at their site here:
=================================
wpforms.com/wpbeginner
=================================
For our discount visit: WPForms.com/wpbeginner
-Links-
►Written Tutorial - How to Send Email in WordPress using the Gmail SMTP Server
www.wpbeginner.com/plugins/ho...
►MonsterInsights www.monsterinsights.com/ Promo Code WPBVIP
-Top Resources-
Use Promo Code WPBVIP
►Best WordPress Contact Form Plugin wpforms.com/wpbeginner
►Best WordPress Analytics Plugin www.monsterinsights.com/
►Best Lead Generation Plugin optinmonster.com/
►Best WordPress SEO Plugin aioseo.com/
►Best Landing Page Builder for WordPress www.seedprod.com/
►Best WordPress Giveaway Plugin rafflepress.com/
-Related Videos-
►WordPress Tutorial - How to Make a WordPress Website for Beginners • 📘 WordPress Tutorial -...
►WordPress Gutenberg Tutorial: How to Easily Work With the Block Editor • 🧱 How to Use the WordP...
►What is SEO and How Does it Work? • 🧱 How to Use the WordP...
►How to Install a WordPress Theme • How to Install a WordP...
For this tutorial we will be using the WP Mail SMTP plugin which can be found using the link below:
wordpress.org/plugins/wp-mail...
With the plugin installed and activated, we will go under Settings, WP Mail SMTP, and select Gmail. For this we will need to set up a client ID, Client Secret and a URL in the 'Authorized redirect URI' fields. To start filling that out we will want to go to the Google Developers Console site and create a new project. You can go to the site using the link below:
console.developers.google.com...
We would recommend naming the project something you can remember should you need to find it again and click the create button. Use the Enable APIs and Services to go through the options and enable the Gmail API.
On the following page, it should have a Create Credentials button in the top right of the page. For the type of API, it will be a Gmail API and we will be calling the API from a Web browser(Javascript) and we will be accessing User data then we will ask what credentials we will need.
In the Authorized Javascript origins, we will add the address of our site. For the Authorized redirect URI, we will get that from the plugins settings page and click refresh to bring up the consent screen. For setting it up, we will use an External, name it, add our email, and publish the app to get our information.
Copy the Client ID from Google to add to your plugin's settings, click done, and edit the OAuth client ID to grab the secret key to include in the plugin's settings and save the settings to ensure you don't lose the information.
You can send another email or for another option, you can set up another SMTP which would require your login information which is far less secure.
If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
czcams.com/users/subscription_...
Join our group on Facebook
/ wpbeginner
Follow us on Twitter
/ wpbeginner
Check out our website for more WordPress Tutorials
www.wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner - Jak na to + styl
Get WPForms wpforms.com/wpbeginner
A quick, no nonsense and to the point tutorial that's beginner friendly as well as developer friendly. Time is precious, the quicker you show someone how to get something done the better it is for both parties. Great tutorial this, cut out all the waffle and just got straight to the point.
Glad you found our guide helpful :)
@@wpbeginner its not
Had to watch your video a few times, but it got us where we need to be. The job was accomplished. Thanks.
Glad our video helped :)
Great video. Clear, beginner friendly and straight to the point. Subscribed.
Glad you found the guide helpful :)
After watching several tutorial, this was the chosen one, right to the point and very clear, you got a new subscriber. Thanks!
Thanks for the sub!
I can't say enough about your helpful tutorials. May you receive whatever Christmas blessing you have been hoping for.
Thank you and we hope you have a great holiday!
Thanks Thanks Thanks ,
I have rarely found a video that so clearly explains the whole flow.
Simply perfect and everything set up in minutes
Good job !
Glad you liked it!
You are a life saver!!! I was trying with another CZcams video and didn’t work. I found your video and it worked!!! Thank you so much.
Glad our guide could help :)
Very quick and to the point. Thank you very much this was easy enough to follow and very appreciated.
Glad you liked it!
Thank you so much... This is awesome. The interface changed already but the principles are still the same. If you are planning further videos about this, it would be amazing to touch on the SPF DKIM DMARC aspects of things. I managed to complete the SPF part relying on Google steps, but I gave up on the others. Still the email seems to be delivered normally now. Can't thank you enough.
Glad our guide was helpful and we will certainly look into those options :)
Love it after 3 days, this fixes my issue.
Glad to hear our guide was able to help! :)
Thank you for a detailed guide! Google changed order of some steps but I still could manage the set up
Glad our guide helped :)
Your video literally saved my time again because again I am stuck with the same but luckily your video saved me!! Thank you so much!!!
Glad our guide was helpful :)
I saw your problem being resolved but I am still stuck please help??
thank you. i got my form working from learning from you. Google has updated the developer screen so some hiccup but managed to get there. Thank you so much. you are wonderful!
Glad we were helpful and thank you for letting us know about the update to Google :)
Very concise to the point guide. Thank you.
You're welcome!
Thank you much for this. Love your videos.👍🏾
You're welcome, glad you like our guides!
Thanks so much. This was super easy to follow and implement. Greatly appreciated!
Glad it was helpful!
Thank you so much for this video!!!!!! I was getting ready to pull my hair out. The quality of your video and voice made your already perfect instructions easy to understand. Thank you!!!
You're welcome! Glad we could share how to fix this issue :)
Hi quick question, setting up either "Gmail" or "other SMTP" could work both right? For example, I have GSuite email, and then I will choose the "other SMTP" setup, it should work too right? Because I find it more accessible to set up without a client ID and secret key. Thanks in advance.
If you want to set up for Gmail's SMTP then you would want to use the system set for Gmail as that is designed not to break if there are updates to how Gmail connects.
Thank you so much for the video! STMP plugin has made an update. Maybe a new updated video would be nice since, most likely, a lot of people will get lost following these instructions. All the best👊
Thank you for letting us know!
Thanks, this method works & I can send emails now from contact forms on my site. My problem is the emails keep ending up in the recipients 'junk' mail. How can this be fixed?
You would want to take a look at the plugin's documentation below:
wpmailsmtp.com/docs/a-complete-guide-to-wp-mail-smtp-mailers/
its helpful tutorial, in my case wp smtp was not working, i deleted and re-created credentials again and it worked.
Glad our guide was helpful :)
Very helpful this was, I appreciate.
Glad it was helpful!
Great tutorial! I followed all your steps and encountered an Error where my URI didn't save correctly. I had to go to the console for my project and look under API Access. Sure enough, the URI wasn't listed after adding it everything works!
Glad you were able to solve your issue.
Thank you so much - this video helped solve my WP gmail problems. I really appreciate your time and effort putting this together.
Glad it helped!
Fantastic description thank you so much...
Glad it was helpful!
Thanks. what does it means "support email"? is this the email that visible to receivers ?
The support email would be visible to those who would try to use your API which you normally would not share.
hi i learnt a lot from this. can you tell why we use gmail smtp instead of Other SMTP in this plugin ? what is the deference or benefit ? thanks
You can use other SMTP providers if you want but most users would use Gmail as that is one of the more common ones to use. As people want to reach users on Gmail, using a service that is from the same provider may have a better chance of reaching their inbox.
Great video! I created a business email with my web service provider and entered that as the WP SMTP email. I ran a test and got a successful email. When I tested my WP contact form, it went straight to my junk inbox. Can you offer any suggestions on how to correct this?
WP Mail SMTP has a guide below for the common reasons and solutions below that should help!
wpmailsmtp.com/wordpress-emails-going-to-spam/
THANK YOU THANK YOU THANK YOU!!!! I have been struggling with this for the past couple of days! You are AMAZING! Thank you so much. You have gained a new sub from me!!
Glad it helped!
In the Consent Screen, after entering the support e-mail ... Where do you get the publish app button?? I do not see such an option on my side? I see only an app information, app domain, scopes and optional info sections to be completed. Please advise. Thanks!
Don't forget to save the information to ensure you've not missed a step
millions of thanks, you solved my very big problem as I am a new learner , You got a new Subscriber for lifetime❤️🙏
Glad our guide could help :)
Thank You very much for the video. It worked in 2021 October, but google console as structure a bit change so I need to find out on some points that was on different place in google dev console. This video helped me to use gmail as SMTP server and before google was sending order emails from woocommerce to spam of customer but after doing the above video steps I tested the customers email was going to their normal gmail account and not spam and a BIG YELLOW saying Becareful notice on the customer order email inside in gmail account is also gone :)
Hi there, can you help please !?I am trying to configure the credentials But I dont know wich application type to select in the OAuth Client ID menu : should I select web application ? Thanks
@@feizoobands9958 web application YES
@@dakhmbangladesh Thank you
Thanks for sharing, we'll be sure to look into updating this video when we are able :)
thank you for this video. Very helpful!
Glad it was helpful!
You're a lifesaver. Thanks a million times! ❤❤❤
You're welcome!
this video helped soo much to my bussines! thankyou very much!!!!!!!!!!
You're welcome, glad our guide was helpful!
thank u very much for sooo simple explanation.
Glad we could be helpful :)
thanks, it was simple and to the point
You're welcome :)
Very good video. But how can you handle this for your clients. Do you need client's Google (Gmail account and password) to access their Google Cloud Project?
Unless we hear otherwise, yes you would need to have the user share their login or show users the steps to create the API and then the API access would be shareable.
Thanks for the tip.
You're welcome :)
Usefull at february 15, 2021! Thanks!
You're welcome!
Thx for your video to guide me steps by steps and solve the issues
Happy to help
Great tutorial you made my day !
Glad to hear!
Thank you so much!
You're welcome!
Thank you for the assistance, What about how to configure "{activation.url} " to require email activation for new user registrations to avoid Email Spam
It would depend on the plugin you are using for user signups if you are using a form plugin, most have an option to set up an activation URL on signup.
@@wpbeginner Thank you for your help, However I am using a theme template with already made signups....I will try to see if my server can send email to users, for activation emails purposes
Thanks for the video. Helped solve my problem.
Glad it helped :)
How to set URI in google console for testing purposes in localhost?this is proper aproach only for production mode.Thank you?
For setting up smtp on localhost, you would want to take a look at the article below:
wpmailsmtp.com/wordpress-smtp-localhost/
Oh my goodness, thank you so much!
You're welcome :)
great video and beginner friendly
Glad you found it beginner friendly :)
You are GREAT!! thanks!!!! (feb 2021)
Glad our guide was helpful :)
I have a store on a shared host, emails that I send from my store all end up in customer spam boxes (mail tester score: 9.9), probably is due to being a shared host I imagine. Will using a separate smtp fix this?
Sadly, there is no guarantee of that, you would want to encourage your users to whitelist/unset your email address from their spam for email providers to begin to trust your email address to help reduce the chances of the email getting caught in the spam folder.
thanks for the video! what about the scopes in oauth consent screen? i did all your steps up to "allow plugin to send...", then got an "gooole hasn't verified this app" message. i got no button to continue other than "back to safety". can you please help? thanks
The scope is optional, don't worry about setting it up. For the hasn't verified this app message, go to the bottom-left and click advanced, then use the link to go to the site that appears.
great video. Will this process assist with my request for quotation plugin? currently it doesnt send the quotations.
This plugin is to help emails from your site reach inboxes. For a request a quote plugin, we would recommend one of the options from our list below:
www.wpbeginner.com/showcase/best-wordpress-request-a-quote-plugins-instant-quotes/
its a bit different now, I think it just recently updated, but it still pointed me in the general right solution! :) Thanks for the video
You're welcome!
Good Job thank you!
Glad it was helpful!
wonderful video, we need more people like you to make videos like this :)
Glad you like our video :)
Thanks for the tutorial. I was able to set it up but my test email goes directly to the Spam folder. Any idea why this happens and how to resolve it? Thanks.
There are a few possibilities, we would recommend taking a look at the article below that covers the most common reasons and their solutions:
wpmailsmtp.com/wordpress-emails-going-to-spam/
Just like every other video explaining how to do this, no one shows what the end result is or how the email actually works once it's set up this way. Seeing this would give viewers an idea of what was actually done.
This guide is focusing on the tool that sends the email not what creates and styles the email itself which is why us and others do not focus on what the email looks like :)
merci beaucoup pour ce tutorial
You're welcome, glad you found our tutorial helpful!
super useful; thanks
Glad it was helpful!
Its working. The teaching way is really good.
Glad our guide was helpful :)
perfect tutorial its works for me thank you
You're welcome!
thanks! big help.
Glad it was helpful!
Once I’ve hit the final button to allow plugin to send emails using my google account and I am transferred to choose which google account, it says google hasn’t verified this app. Why would that be if I followed all the steps?
There should be an advanced link on the not verified page that you can click to get past that page and use the connection.
how did you jump to the google credential?
We have a link to the page in the description of the video :)
this tutorial saved my life
Glad our guide could help :)
Helpful thanks
Glad it helped
Thanks for the video 🙂. A quick question..... What is the daily sending LIMIT and PRICING?
You can see Gmail's limits here:
support.google.com/mail/answer/22839?hl=en
Ok thanks
Thanks a lot!
You're welcome!
Great Tutorial
Glad it was helpful!
You're awesome 🙏
Thank you!
Hello there. Is there any limitation on number of mails I can receive by configurating my contact form this way?
You can see Google's limitations on their page below:
support.google.com/a/answer/166852?hl=en
@@wpbeginner thank you !
This video was on fire! You just saved me $50 bucks! Can you please do an update on this with the new update?
We will be sure to look to update this video in the future!
Thank you!!!
You're welcome!
Great tutorial, however google is asking me about scopes? You didnt cover anything for this. Any insight would be greatly appreciated.
That is a new addition, you should be able to scroll past scope and click save.
thank you very much
You are welcome
Thanks for the video! I was able to link to Gmail. However, I was able to receive the first five emails only and nothing after. How to fix? Thanks
It would depend on if you're seeing an error or not, we would recommend starting by reaching out to the plugin's support using the forum below:
wordpress.org/support/plugin/wp-mail-smtp/
@@wpbeginner many thanks!
Thanks so much for the amazing video. But I need help with one thing.
Actually I am a web developer and I develop websites for many businesses and each and everyone of them needs an online form. So to activate it on their website the gmail SMTP method, should I use Google API details from my google account, as they wont give me access to their google account and asking them to give me Client ID, client secret & Redirect URI is too technical.
So plz recommend me what should I do... Your help would be really helpful. Thanks :)
We would recommend walking your users through the process to prevent usage limits on your own account.
@@wpbeginner Thanks so much for your reply🤟
THANK YOU
You're welcome!
My app says “In Production” was this something I accidentally hit instead of Publish or does it need to be verified from Google? Please help. It says that my email needs to verify, but I don’t have any sort of email or notification where I can do that.
Google may have modified their phrasing. For authorization if you are using the WP Mail SMTP plugin there is the button in the plugin's settings to authorize.
Thank u soooo much
You're welcome :)
So helpful
Glad it was helpful!
Saved my bacon today. Thank you.
Glad it helped!
Thank you very much mam💕
You're welcome!
Hi so I am trying your steps but I am not able to make a "New Project"in Google Cloud. It keeps giving me the error that: "You have 12 projects remaining in your quota. Request n increase or delete projects. Learn more" However, I never made a project so I dont understand why I am getting this message. Since I have no projects/never made one I am also not able to delete any..
You would needs to check with Google's support for this but one solution that other people have used is on the post below:
serverfault.com/questions/1066254/somebody-created-projects-on-google-cloud-in-my-account-without-my-knowledge
The settings here is different from the current plugin... there was a update and the whole set up steps changed
Thank you for letting us know, we'll look into it and if the steps have updated we will look into updating the video :)
How do you set up a Gmail account for clients if you do not have their Gmail passwords?
You would need to reach out to the user for their password.
Thanks !!!
You're welcome!
what to write in the organization part?
kindly tell plz
If you are required to fill that out, the common name in that would be the domain of your site.
I would've NEVER figured that out on my own haha
THANK YOU!!!!! Your 6 minute video solved what I've been struggling with for the past day and a half.
Glad our guide was helpful :)
thanks much
You're welcome
congrats mam & Thanks a lot but i am facing problem on webmail smtp.please recommend a way
We would recommend reaching out to wp mail SMTP's support with the specific error and they should be able to assist.
@@wpbeginner thanks for the reply.i will try.
thanks for the video, however i keep receiving error when sending a test mail
An issue was detected.
This means your test email was unable to be sent.
Typically this error is returned for one of the following reasons:
- Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc).
- Your web server is blocking the connection.
- Your host is rejecting the connection.
please help, its beginning to get frustrating
You would want to reach out to the plugin's support for extra assistance but you would want to check your settings and if those are correct, reach out to your host to see if they may be blocking the connection.
thank you
You're welcome
Thanks for this video, but everything changed after" what kind of creds you need" . The options are Web app, android, chrome app, iso, tv desktop app UWP... there's no Web browser option
You should be able to use web app and we will look into the updates and update the video when we are able.
Thank u
Welcome
at 1:49 the box that I am supposed to enter my "From Email" does not let me type anything. It says "Please first authorize the Gmail mailer below". I don't know what it means. Please help!
You may want to continue the video to 2:19 and Christina should go over how to authenticate :)
@@wpbeginner i watched the whole video. Several times. I think i figured out my problem though. I recently transferred my domain to google and it hasn’t fully been verified so it wasn’t allowing me to complete the smtp setup.
@@wpbeginner I have the same issue but cannot see any solution at 2:19 in the video.
Also, I'm unable to select User Type External at 3:47. I can also choose Internal
My From Email is grayed out and says "Please first authorize the Gmailer Below" . Any idea of what could be the problem?
You would want to set up your connection to Gmail first and the n it should be editable :)
I am only getting email from contact form when my own email is used in the form, otherwise I am unable to receive email through contact form. Can you please help?
Please ensure your form settings are sending submissions to the correct email address.
I almost frustrated, when people fill the form it always said "Server Error, Form Not Sent"; Thank you for this tutorial !!!!
Glad our guide could help :)