Update '5_Envio_de_mails'

jp.av.dev 2021-07-02 22:15:23 -04:00
parent af812a1b1f
commit 816be37300

@ -10,7 +10,7 @@
### Libreria core.mail ### Libreria core.mail
*settings.py* *settings.py*
``` ```py
EMAIL_BACKEND = 'django.core.imail.backends.smtp.EmailBackend' EMAIL_BACKEND = 'django.core.imail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True EMAIL_USE_TLS = True
@ -22,7 +22,7 @@ EMAIL_HOST_PASSWORD = 'clave-ejemplo'
[django.core.mail-doc](https://docs.djangoproject.com/en/3.0/topics/email/#module-django.core.mail) [django.core.mail-doc](https://docs.djangoproject.com/en/3.0/topics/email/#module-django.core.mail)
🔸️***python3 manage.py shell*** 🔸️***python3 manage.py shell***
``` ```py
(InteractiveConsole) (InteractiveConsole)
>>> from django.core.mail import send_mail >>> from django.core.mail import send_mail
>>> >>>
@ -36,7 +36,7 @@ EMAIL_HOST_PASSWORD = 'clave-ejemplo'
### Envio de mail desde formulario de contacto ### Envio de mail desde formulario de contacto
*views.py* *views.py*
``` ```py
... ...
from django.core.mail import send_mail from django.core.mail import send_mail
from django.conf import settings from django.conf import settings