Beispiel #1
0
    def __init__(self, subject, body, from_email, to, cc, in_reply_to):
        EmailMessage.__init__(self, subject, body, from_email, to)

        self.cc = cc or []

        self.in_reply_to = in_reply_to
        self.message_id = None
Beispiel #2
0
 def __init__(self,
              subject_template,
              message_template,
              context,
              recipients,
              cc=None,
              reply_to=None):
     EmailMessage.__init__(
         self,
         subject=render_to_string(subject_template, context),
         body=render_to_string(message_template, context),
         to=recipients,
         cc=cc,
         reply_to=reply_to,
     )
Beispiel #3
0
 def __init__(self):
     EmailMessage.__init__(self)
     self.content_subtype = "html"
     self.from_email = settings.EMAIL_HOST_USER
     self.fail_silently = True
Beispiel #4
0
 def __init__(self, subject='', body='', from_email=None, to=None, bcc=None,
         connection=None, attachments=None, headers=None):
     if CM_EMAIL_SUBJECT_PREFIX:
         subject = CM_EMAIL_SUBJECT_PREFIX + subject
     BaseEmailMessage.__init__(self, subject, body, from_email, to, bcc, connection, attachments, headers)