0
나는 내 고객에게 HTML 이메일을 보내 다음과 같은 파이썬 스크립트를 사용하고 있습니다 :Python 전자 메일 스크립트를 최신 AOL 연결 설정으로 구성하는 방법은 무엇입니까? 나는 거의 파이썬에 대해 아무것도 몰라
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
addr_to = '[email protected]'
addr_from = 'Me <[email protected]>'
smtp_server = 'smtp.aol.com'
smtp_user = '[email protected]'
smtp_pass = 'password'
msg = MIMEMultipart('alternative')
msg['To'] = addr_to
msg['From'] = addr_from
msg['Subject'] = 'Email subject'
text = "Plain text goes here"
html = """\
HTML version goes here.
"""
part1 = MIMEText(text, 'plain')
part2 = MIMEText(html, 'html')
msg.attach(part1)
msg.attach(part2)
s = smtplib.SMTP(smtp_server)
s.login(smtp_user,smtp_pass)
s.sendmail(addr_from, addr_to, msg.as_string())
s.quit()
최근 AOL은 최신 보안 연결에 내 이메일 응용 프로그램을 업데이트 나에게 묻는 나에게 메시지를 보내 내 파이썬 코드로 테이블에 주어진 설정을 구현하는 방법을 알고 싶어요
을이 표에 설명되어 있습니다 설정? 고맙습니다!