私はpython 2.7でメールを送信するためにsmtplibを使用しようとしています。以下のコードは非常に単純です:私は以下のコードを実行するときsmtplib.SMTPAuthenticationError:(535、 '5.7.3認証に失敗しました')
import smtplib
def main(argv=None):
sender = '[email protected]'
receivers = ['[email protected]']
message = """
This is a test e-mail message.
"""
smtpObj = smtplib.SMTP('[email protected]',25)
smtpObj.login('abc', 'pwd')
smtpObj.sendmail(sender, receivers, message)
print "Successfully sent email"
if __name__ == '__main__':
main()
は今、私はこの例外を得続ける:
smtplib.SMTPAuthenticationError:(535、 '失敗した5.7.3認証')。
よろしくお願いします。
ありがとう、
同じこと私も忘れました –