在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Python  C++  網(wǎng)絡(luò)安全/ 用Python 發(fā)郵件, 報(bào)錯(cuò)之后,重新登陸阻塞

用Python 發(fā)郵件, 報(bào)錯(cuò)之后,重新登陸阻塞

用Python 發(fā)郵件,第一次調(diào)用 login_mail() 發(fā)送了一定數(shù)量的郵件,報(bào)錯(cuò), 報(bào)錯(cuò)之后,try...except 內(nèi) 休息 5 秒 重新調(diào)用 login_mail(),只能打印到 "正在登陸郵箱。。。" ,一直阻塞不能登陸成功,代碼如下

   def login_email(smtp_host, port, email_account_info):
        print('正在登陸郵箱。。。')
        emObj = smtplib.SMTP()
        emObj.connect(smtp_host, port)
        emObj.starttls()
        emObj.login(email_account_info['user'], email_account_info['password'])
        print('郵箱登陸成功。。。')
        return emObj

報(bào)錯(cuò)信息:

(554, b'5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is TransientError. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is TransientError. [Hostname=KL1PR02MB1400.apcprd02.prod.outlook.com]')

請求指點(diǎn),多謝萬分。

回答
編輯回答
吢丕

應(yīng)該是發(fā)件太頻繁,被當(dāng)成垃圾郵件制造者了。

2018年4月28日 16:48