Prevent to send email with subject
darcs-hash:20070619194416-86b55-897322bd4ab57664da46e20afd5a3bc6befe5a8a.gz
This commit is contained in:
@@ -637,6 +637,8 @@ class SMTPAccount(Account):
|
||||
def create_email(self, from_email, to_email, subject, body):
|
||||
"""Create new email"""
|
||||
email = MIMEText(body)
|
||||
if subject is None:
|
||||
subject = ""
|
||||
email['Subject'] = Header(str(subject))
|
||||
email['From'] = Header(str(from_email))
|
||||
email['To'] = Header(str(to_email))
|
||||
|
||||
Reference in New Issue
Block a user