
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
이메일과 앱 비밀번호를 넣었는데 어떤게문제인지 실행이 되지 않습니다
보고 계신 화면 전체를 캡처해 주시면, 튜

터님들이 빠르게 상황을 이해할 수 있어요.
from smtplib import SMTP_SSL
from email.message import EmailMessage
# 이메일 메시지 설정
msg = EmailMessage()
msg['Subject'] = '업무자동화 종합반 테스트'
msg['From'] = 'fg89137711@gmail.com'
msg['To'] = 'fg89137711@gmail.com'
msg.set_content('This is a test email.')
# SMTP 설정 및 이메일 전송
with SMTP_SSL('smtp.gmail.com', 465) as smtp:
smtp.login('fg89137711@gmail.com', 'xxxx rlwy oxrn zjzz')
smtp.send_message(msg)
print("성공!")
Microsoft Windows [Version 10.0.22631.3958]
(c) Microsoft Corporation. All rights reserved.
C:\Users\장지혜\Desktop\automation\crawling>c:/Users/장지혜/Desktop/automation/crawling/.venv/Scripts/python.exe c:/Users/장지혜/Desktop/automation/crawling/send_email.py
No pyvenv.cfg file
C:\Users\장지혜\Desktop\automation\crawling>
