

def __init__(self, sender='', recipients=(), subject='', alternative=0, reply_to=None, cc=(), email_account=None):
    from email.mime.multipart import MIMEMultipart
    from email import Charset
    Charset.add_charset('utf-8', Charset.QP, Charset.QP, 'utf-8')
    if isinstance(recipients, basestring):
        recipients = recipients.replace(';', ',').replace('\n', '')
        recipients = split_emails(recipients)
    recipients = filter(None, (strip(r) for r in recipients))
    self.sender = sender
    self.reply_to = (reply_to or sender)
    self.recipients = recipients
    self.subject = subject
    self.msg_root = MIMEMultipart('mixed')
    self.msg_multipart = MIMEMultipart('alternative')
    self.msg_root.attach(self.msg_multipart)
    self.cc = (cc or [])
    self.html_set = False
    self.email_account = (email_account or get_outgoing_email_account())

dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py EMail.__init__/original