파이썬 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 인증 실패를').
친절히 조언하십시오.
감사합니다.
같은 것 또한 잊지했다 –