Пример #1
0
 def _new (self, mt, st, b) :
     msg = pyk.email_message_from_bytes (pyk.encoded (b, "latin-1"))
     return self.MIME (msg, _subtype = st)
Пример #2
0
 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)
Пример #3
0
 def _new(self, mt, st, b):
     msg = pyk.email_message_from_bytes(pyk.encoded(b, "latin-1"))
     return self.MIME(msg, _subtype=st)