From 40d638b045cb75221b54f5c3e84947789492c65e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 22 Jun 2011 13:58:46 +0530 Subject: [PATCH] Modified send method of FormEmail class: changed method call attach to attach_file --- cgi-bin/webnotes/utils/email_lib/form_email.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/utils/email_lib/form_email.py b/cgi-bin/webnotes/utils/email_lib/form_email.py index 5bd3be8007..979f1f8b86 100644 --- a/cgi-bin/webnotes/utils/email_lib/form_email.py +++ b/cgi-bin/webnotes/utils/email_lib/form_email.py @@ -148,9 +148,11 @@ class FormEmail: self.email.add_attachment(self.dn.replace(' ','').replace('/','-') + '.html', self.body) # attachments + # self.with_attachments comes from http form variables + # i.e. with_attachments=1 if cint(self.with_attachments): for a in self.set_attachments(): - a and self.email.attach(a.split(',')[0]) + a and self.email.attach_file(a.split(',')[0]) # cc if self.cc: