def __init__(self, context=None):
        # Create the context
        context = context or {}
        c = self.get_context_data(**context)
        self.context = Context(c)
        self.lang = self.get_language()

        # Check that all the mandatory context is present.
        for key in self.get_params():
            if key not in context:
                raise exceptions.MissingMailContextParamException(repr(key))
Create a mail instance from a context.
dataset/ETHPy150Open novafloss/django-mail-factory/mail_factory/mails.py/BaseMail.__init__