瀏覽代碼

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

version-14
Anand Doshi 14 年之前
父節點
當前提交
40d638b045
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      cgi-bin/webnotes/utils/email_lib/form_email.py

+ 3
- 1
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:


Loading…
取消
儲存