Discussion:
SMTP AUTH extension not supported by server
a***@gmail.com
2016-01-15 08:43:48 UTC
Permalink
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='***@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+***@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.
François Schiettecatte
2016-01-15 14:47:30 UTC
Permalink
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
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_PASSWORD = 'blabla2016'
EMAIL_PORT = 587
views.py
form = ContactForm (request.POST ou Aucun)
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.
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.
--
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/9502ADD2-793B-400B-9114-3261619D0212%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...