Re: django.core.email problem
Sorry for the code formatting.
Nevertheless, I`ve already tryed this kind of setting and was getting
the "Connection timed out" socket error.
It seems that some smtp-servers require the connection to be ssl-
encrypted from the very start, without special enabling.
On Jan 13, 5:22 am, phan sarak <pythonkh...@gmail.com> wrote:
> Try look at
>
> http://www.packtpub.com/article/friends-via-email-social-web-applicat...
>
>
>
> On Wed, Jan 13, 2010 at 8:59 AM, vlk <vekaza...@gmail.com> wrote:
> > I use an smtp server that requires smtplib.SMTP_SSL class to be used
> > for email sending. The usual EMAIL_USE_TSL=True setting doesn`t work.
>
> > Changing following lines in the django.core.mail module from
>
> > self.connection = smtplib.SMTP(self.host, self.port,
>
> > local_hostname=DNS_NAME.get_fqdn())
> > to
>
> > self.connection = smtplib.SMTP(self.host, self.port, #
> > port here set to 487 in the settings.py module
>
> > local_hostname=DNS_NAME.get_fqdn())
>
> > seems to fix the problem.
>
> > I wonder if there is a reasonable way to fix the issue without
> > touching core django code?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscribe@googlegroups.com<django-users%2Bunsubscribe@google groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home