def __init__(self, type, user=None, email_address=None, subject='', update_next_email_time=False, **kw):
        hostname = settings.HTTP_HOST
        email_address = email_address if email_address else user.email
        unsub_code = salted_hash(email_address)
        kw.update(dict(hostname=hostname,
                       subject=subject,
                       user=user,
                       unsub_code=unsub_code))
        self.subject = subject
        self.template_args = kw
        self.text_content = render_to_string('email/txt/%s.txt' % type, kw)
        self.html_content = render_to_string('email/html/%s.html' % type, kw)
        self.user = user
        self.update_next_email_time=update_next_email_time

        # Lock that down
        if settings.EMAIL_REAL_PEOPLE or email_address.endswith('@jumo.com'):
            self.to = email_address
        else:
            self.to = 'jumodev@gmail.com'
        self.from_address = 'Jumo <no-reply@jumo.com>'
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/mailer/content.py/EmailTextHTML.__init__/original