use_ssl parameter in defs too

This commit is contained in:
Anand Doshi 2012-03-06 18:32:36 +05:30
parent 481f9d4872
commit 4fd62c4648

View file

@ -180,7 +180,7 @@ class EMail:
self.login = cp.mail_login or getattr(webnotes.defs,'mail_login','')
self.port = cp.mail_port or getattr(webnotes.defs,'mail_port',None)
self.password = cp.mail_password or getattr(webnotes.defs,'mail_password','')
self.use_ssl = cint(cp.use_ssl)
self.use_ssl = cint(cp.use_ssl) or cint(getattr(webnotes.defs, 'use_ssl', ''))
def make_msg(self):
self.msg_root['Subject'] = self.subject