Modified send method of FormEmail class: changed method call attach to attach_file
This commit is contained in:
parent
c0e654fbd6
commit
40d638b045
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue