예제 #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
파일: SMTP.py 프로젝트: xiaochang91/tapyr
 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)