Cant send email via python using gmail - smtplib.SMTPException: SMTP AUTH extension not supported by server

前端 未结 2 1431
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 09:49

I just want to send an email in python with an attachment

import smtplib, os
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
fr         


        
2条回答
  •  萌比男神i
    2021-02-01 10:31

    On gmail you also have to give a smtp.ehlo() before smtp.starttls() This is also duplicate of How to send an email with Gmail as provider using Python?

提交回复
热议问题