< コード例 >
## 完了メール配信 ## TO_ADDRS = ["????????@gmail.com", "???????@?????.co.jp"] smtp_server = "???????" port = ?? server = smtplib.SMTP(smtp_server, port) server.set_debuglevel(True) message = MIMEMultipart() message["Subject"] = "@@ タイトル @@" message["To"] = ",".join(TO_ADDRS ) message["From"] = "??????" text = MIMEText("本文") message.attach(text) server.send_message(message) server.quit()