Update '5_Envio_de_mails'
parent
af812a1b1f
commit
816be37300
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user