If you are not getting the emails from your site or you are getting emails in your Junk/spam folders, then you should configure the SMTP (Simple Mail Transfer Protocol) in your code. To configure the SMTP (Simple Mail Transfer Protocol) you need some details like hostname, username, and port number, etc..
In this tutorial, I will explain how to get the Gmail SMTP settings for sending email by using your code.
Below are the specific details you need to set up SMTP for Gmail.
I hope this tutorial helps you. Do Like & share with your friends and don’t forget to subscribe our newsletter to learn the cool tutorials.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari