0

I have a problem with the settings file I try to configure the sending of mail but it not works

I wrote :

EMAIL_HOST= 'mailhost.onera'
EMAIL_HOST_USER = 'patrice.kerviel@onera.fr'
EMAIL_HOST_PASSWORD = 'my-password'
EMAIL_PORT = 25
EMAIL_USE_TLS = True

and i have the error:

STARTTLS extension not supported by the server

if i change :

EMAIL_USE_TLS = False

I have the error : AUTH extension not supported by the server

if I change :

EMAIL_HOST_USER = None
EMAIL_HOST_PASSWORD = None
EMAIL_PORT = 25
EMAIL_USE_TLS = False

Now, I have no error but no email is sent

what is this problem ?

Brandon Taylor
  • 33,823
  • 15
  • 104
  • 144
Patrice
  • 209
  • 1
  • 4
  • 15

1 Answers1

0

I preferebly use mandrilapp.com, it is of almost free.Just signup and get API Key in settings.In order to integrate to django, use djrill .Simple steps

pip install djrill

In INSTALLED_APPS

INSTALLED_APPS = (
    ...
    "djrill"
)

In settings.py

MANDRILL_API_KEY = "****frtyy*******"
EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"

Then use django.core.email methods(send_mail, etc...).No formalities..Enjoy.. :)

itzMEonTV
  • 19,851
  • 4
  • 39
  • 49