Attach the file to the e-mail: part = MIMEBase('application', 'octet-stream') part.set_payload(open(attach, 'rb').read()) Encoders.encode_base64(part) ...
確定! 回上一頁