Thank guys.

Finally i get why this does not work.

On Thursday, March 15, 2012 5:22:17 AM UTC+2, Karen Tracey wrote:
>
> 2012/3/14 infinitylX <infinit...@gmail.com>:
> > 465 is a port for gmail and code i provide is completely working...
> > but question is why django is not working with same settings...
>
> Because, as JJO stated, the code you show is NOT what Django does when
> establishing a secure email connection. The code you showed
> establishes an SSL connection to the email server. The
> smtplib.SMTP_SSL method you show is a feature new in Python 2.6.
> Django still supports Python 2.5, so cannot use this method. The older
> way of establishing a secure connection to an email server is to begin
> with a non-encrypted connection and upgrade it to secure via the
> STARTTLS command. This is what Django does when you specify
> EMAIL_USE_TLS=True. Gmail doc notes that for the TLS/STARTTLS case,
> you need to use port 587:
> http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
>
> Karen
> -- 
> http://tracey.org/kmt/
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DBbrXtHYfIcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to