커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
ChatGPT 300% ~~~ 교육중 4강 업무 자동화를 하면서 ,메일 보내기 테스트중인데요..
[왕초보] ChatGPT 300% 활용하기 v0
4주차
북마크
신*숙
댓글
10
추천
0
조회수
10
조회수
10
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


메일 보내기 오류가 나요..

암호는 바로 앱비밀번호 생성해서 보냈는데요..

왜 안갈까요?


작성한 코드 및 에러 메세지

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')




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴