Tuesday, January 12, 2010

Re: django.core.email problem

Try look at

http://www.packtpub.com/article/friends-via-email-social-web-application-django-1.0

On Wed, Jan 13, 2010 at 8:59 AM, vlk <vekazanov@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.
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


Real Estate