前提・実現したいこと
python: 3.6.4
公式ドキュメントの「10.7.インターネットへのアクセス」を学習しています。
公式:https://docs.python.jp/3/tutorial/stdlib.html#string-pattern-matching
smtplibでメールの送信をしてみましたが、送信失敗してしまいます。
検索しても、同じような壁にぶち当たっている方がおらず、行き詰ってしまいました。
解決法のご教示よろしくお願い致します。
該当のソースコード
SMTPサーバーは、メールソフト「Thunderbird」内臓のものを利用しています。
Python
1import smtplib 2server = smtplib.SMTP('ホスト名') 3server.sendmail('送信元メールアドレス', '送信先メールアドレス', 4 """To: 送信先メールアドレス 5 From: 送信元メールアドレス 6 7 Beware the Ides of March 8 """) 9server.quit()
送信失敗メールが届いた
送信元のメールに以下のメールがとどきました。
This is the mail system at host ホスト名. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system
送信元にメールが届いたということは、間違いなくSMTPサーバーが動いていると踏んでいますが、
それ以上のことは何も想像が付きません。
解決法のご教示よろしくお願い致します。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/09/12 00:48