Email sand using Django project

Описание к видео Email sand using Django project

Thank you for watching.
https://drive.google.com/file/d/18wAuX3lwS...

----------------------------------------------
settings.py

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your_email_password'


This code configures a Django application to use SMTP (Simple Mail Transfer Protocol) for sending emails.

EMAIL_BACKEND: This setting specifies the email backend that Django should use. In this case, it’s set to ‘django.core.mail.backends.smtp.EmailBackend’, which tells Django to use Python’s built-in SMTP backend.

EMAIL_HOST: This setting specifies the hostname or IP address of the SMTP server that Django should connect to. In this case, it’s set to ‘smtp.gmail.com’, which is the SMTP server for Gmail.

EMAIL_PORT: This setting specifies the port that Django should use to connect to the SMTP server. In this case, it’s set to 587, which is the standard port for TLS-encrypted SMTP connections.

EMAILUSETLS: This setting specifies whether Django should use TLS (Transport Layer Security) to encrypt the connection to the SMTP server. In this case, it’s set to True, which means that Django will use TLS to protect the email data in transit.

EMAILHOSTUSER: This setting specifies the username that Django should use to authenticate with the SMTP server. In this case, it should be set to your Gmail email address.

EMAILHOSTPASSWORD: This setting specifies the password that Django should use to authenticate with the SMTP server. In this case, it should be set to your Gmail email password.

With these settings in place, Django will be able to send emails using the Gmail SMTP server through a TLS-encrypted connection, using your Gmail credentials for authentication.

PDF Guid: https://drive.google.com/file/d/1H7T3CiMRK...

music credit:
––––––––––––––––––––––––––––––
[0:00]:
Breeze by MBB / mbbofficial
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2PFncFB
Music promoted by Audio Library • Breeze / Fantastic / Fresh – MBB (No ...
––––––––––––––––––––––––––––––
[2:36]:
Fantastic by MBB / mbbofficial
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2PD28zL
Music promoted by Audio Library • Breeze / Fantastic / Fresh – MBB (No ...
––––––––––––––––––––––––––––––
[5:20]:
Fresh by MBB / mbbofficial
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2PK8m0A
Music promoted by Audio Library • Breeze / Fantastic / Fresh – MBB (No ...
––––––––––––––––––––––––––––––

Комментарии

Информация по комментариям в разработке