2

I am trying to integrate email verification during a new user registration. I am in the beggining of this feature implementation. For this purposes in settings.py i set the following settings

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'youremail@gmail.com'
EMAIL_HOST_PASSWORD = 'yourpassword'
EMAIL_PORT = ????

and here is my question which EMAIL_PORT i should specify if i am working on my local computer

2 Answers2

2

For gmail use 587 when TLS is true.

For other smtp providers look at the smtp servers docs or manuals for their defined port lists. This informations are publicly available for major smtp service providers.

alamshafi2263
  • 639
  • 4
  • 15
1

you are using gmail smtp server so you should use port number 587

unknown
  • 322
  • 6
  • 25