From 816be37300799112471bff4edce9ea80e9c569a5 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Fri, 2 Jul 2021 22:15:23 -0400 Subject: [PATCH] Update '5_Envio_de_mails' --- 5_Envio_de_mails.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/5_Envio_de_mails.md b/5_Envio_de_mails.md index c68047e..bba03ec 100644 --- a/5_Envio_de_mails.md +++ b/5_Envio_de_mails.md @@ -10,7 +10,7 @@ ### Libreria core.mail *settings.py* -``` +```py EMAIL_BACKEND = 'django.core.imail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.gmail.com' 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) 🔸️***python3 manage.py shell*** -``` +```py (InteractiveConsole) >>> from django.core.mail import send_mail >>> @@ -36,7 +36,7 @@ EMAIL_HOST_PASSWORD = 'clave-ejemplo' ### Envio de mail desde formulario de contacto *views.py* -``` +```py ... from django.core.mail import send_mail from django.conf import settings