From 4fd62c46483804bc565b0c7f2a0678ef4b9bca22 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 6 Mar 2012 18:32:36 +0530 Subject: [PATCH] use_ssl parameter in defs too --- py/webnotes/utils/email_lib/send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/webnotes/utils/email_lib/send.py b/py/webnotes/utils/email_lib/send.py index 819ce313d1..a33b917568 100644 --- a/py/webnotes/utils/email_lib/send.py +++ b/py/webnotes/utils/email_lib/send.py @@ -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