Gmail SMTP Settings For Sending Email

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.

Gmail SMTP Settings for Sending Mail

Gmail’s Default SMTP Settings

Below are the specific details you need to set up SMTP for Gmail.

  • Gmail SMTP server address:
  • Gmail SMTP username: Your Gmail address (e.g. [email protected])
  • Gmail SMTP password: Your Gmail password
  • Gmail SMTP port (TLS): 587
  • Gmail SMTP port (SSL): 465
  • Gmail SMTP TLS/SSL required: yes

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.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , ,