Friday, January 15, 2016

SMTP AUTH extension not supported by server

bnj

je suis bloqué  depuis deux jours sur un problème d'envoie d'un mail avec django

enfaite j'ai tous fait a l'aide de documentation django

settings.py

EMAIL_USER_TLS = True
EMAIL_HOST = "smtp.gmail.com"
EMAIL_HOST_USER='blabla2016@gmail.com '
EMAIL_HOST_PASSWORD = 'blabla2016'
EMAIL_PORT = 587


views.py


form = ContactForm (request.POST ou Aucun)
if form.is_valid ():
   email = form.cleaned_data.get ("email")
   message = form.cleaned_data.get ("message")
   full_name = form.cleaned_data.get ("full_name")

   subject = "Mail de django"
   from_email = settings.EMAIL_HOST_USER
   to_email = [from_email]
   contact_message = "% s:% s de VIA%" l'% (
    nom complet,
    message,
    email
    )
  
        
   send_mail (sous réserve, contact_message, from_email, to_email, fail_silently = False)



est voici l'erreur qui se produite 


     Extension de SMTP AUTH pas supporté par le serveur


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64c2b563-86c4-4489-9233-9dc0833edac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment