
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
메일 보내기 오류가 나요..
암호는 바로 앱비밀번호 생성해서 보냈는데요..
왜 안갈까요?
작성한 코드 및 에러 메세지
SMTPAuthenticationError Traceback (most recent call last)
<ipython-input-10-2a143153e06b> in <cell line: 30>()
30 with smtplib.SMTP(smtp_server, smtp_port) as smtp:
31 smtp.starttls()
---> 32 smtp.login(smtp_username, smtp_password)
33
34 for name, email in zip(name_list, email_list):
2 frames
/usr/lib/python3.10/smtplib.py in auth(self, mechanism, authobject, initial_response_ok)
660 if code in (235, 503):
661 return (code, resp)
--> 662 raise SMTPAuthenticationError(code, resp)
663
664 def auth_cram_md5(self, challenge=None):
SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8 https://support.google.com/mail/?p=BadCredentials s7-20020a508dc7000000b00560c07f986asm554767edh.58 - gsmtp')
