커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
[코드 스니펫] 여러 고객에게 보내기 위한 코드 수정하기 에러 건.
[왕초보] ChatGPT 300% 활용하기 v0
4주차
북마크
강*훈
댓글
27
추천
0
조회수
33
조회수
33
답변 완료

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

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


4-7  여러 고객에게 보내기 위한 코드 수정 - 1) login account가 10회 미만인 고객의 name과 e-mail 추출하기 : 

수업 가이드에 따라서 Colab에 개인 gmail & P/W 수정해서 넣었는데 실행이 되지 않습니다.



스파르타 즉문즉답



작성한 코드 및 에러 메세지

---------------------------------------------------------------------------
SMTPAuthenticationError                   Traceback (most recent call last)
<ipython-input-12-ef1a6c96d9c3> in <cell line: 26>()
     26 with smtplib.SMTP(smtp_server, smtp_port) as smtp:
     27     smtp.starttls()
---> 28     smtp.login(smtp_username, smtp_password)
     29 
     30     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: (534, b'5.7.9 Application-specific password required. For more information, go to\n5.7.9  https://support.google.com/mail/?p=InvalidSecondFactor lr34-20020a056a0073a200b006e4e93f4f17sm12677056pfb.117 - gsmtp')
취소
 공유
취소
댓글 0
댓글 알림
나의얼굴