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