Example #1
0
    def __init__(self, subject, text_body, html_body, from_email, to, cc,
                 in_reply_to, headers={}):
        EmailMultiAlternatives.__init__(self, subject, text_body,
                                        from_email, to, headers=headers)

        self.cc = cc or []

        self.in_reply_to = in_reply_to
        self.message_id = None

        self.attach_alternative(html_body, "text/html")
Example #2
0
    def __init__(self, context, *args, **kwargs):

        EmailMultiAlternatives.__init__(self, *args, **kwargs)
        self.context = context