Setting up SMTP for mail


How to set up Gmail SMTP (step by step)**

**

Step 1: Enable two-factor authentication (if not already enabled)
Go to your Google account.

Select "Security" from the menu on the left.

Find the "Sign in to Google Account" section.

Click "Two-Step Verification" and turn it on (if it's not already turned on).

Follow the instructions to set up login confirmation (usually via phone or app).

*
*

Step 2: Create an app password

Go to the App Passwords page.

Enter your password if prompted.

In the "Select an application" drop-down list, select "Other (configure yourself)".

Enter, for example, SMTP or the name of your application, and click "Create".

Google will generate a 16-digit password (for example: abcd efgh ijkl mnop).

Copy this password and save it - you will need it when setting up SMTP.

*
*

Step 3: Set up SMTP connection

To configure an SMTP connection in your program, use the following parameters:

  • SMTP server: smtp.gmail.com

  • Port: 465 (SSL) or 587 (TLS)

    *Encryption type: SSL or TLS

  • Authentication: Enabled

  • Username: your full Gmail (e.g. [email protected])

  • Password: Application password (generated in step 2)

  • Setarea SMTP pentru poșta electronică


Was the article helpful?

Yes, thank you! Unfortunately no

article.helpfulQuestion