Modified send method of FormEmail class: changed method call attach to attach_file

This commit is contained in:
Anand Doshi 2011-06-22 13:58:46 +05:30
parent c0e654fbd6
commit 40d638b045

View file

@ -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: