概要 Python の標準ライブラリを使ってメール送信する。 デコレータと組み合わせて、処理終了お知らせメールを送信してみる。 参考 Python 公式「email 使用例」 Lambda7's Website「Python デコレータ解説」 簡単な例 ~メールを送信してみる~ Python のサンプルをほぼそのまま使用してみる。 送信は SMTP サーバに依頼しているらしい。(差出人偽装も簡単なのね。。) 以下、サンプル。 # -*- coding: utf-8 -*- # Import smtplib for the actual sending function import smtplib # Import the email modules we'll need from email.mime.text import MIMEText from_address = '(送信元アド