SMTP AUTH extension not supported by server

117 views
Skip to first unread message

achrefs...@gmail.com

unread,
Jan 15, 2016, 4:27:48 AM1/15/16
to Django users
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='blabl...@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


François Schiettecatte

unread,
Jan 15, 2016, 9:48:06 AM1/15/16
to django...@googlegroups.com
See this:

https://groups.google.com/forum/#!msg/django-users/w-fqKimJZH4/h1G0Lj2t0iIJ

Also plenty of other suggestions if you google for 'django google smtp authentication’

Best regards

François
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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.

Reply all
Reply to author
Forward
0 new messages