def _new (self, mt, st, b) : msg = pyk.email_message_from_bytes (pyk.encoded (b, "latin-1")) return self.MIME (msg, _subtype = st)
def __call__ (self, text, mail_opts = (), rcpt_opts = None) : email = pyk.email_message_from_bytes (pyk.encoded (text, self.charset)) self.send_message (email, mail_opts = mail_opts, rcpt_opts = rcpt_opts)
def _new(self, mt, st, b): msg = pyk.email_message_from_bytes(pyk.encoded(b, "latin-1")) return self.MIME(msg, _subtype=st)