Discuss / Python / 发送html带图片文件的时候,会报554 DT:SPM

发送html带图片文件的时候,会报554 DT:SPM

Topic source

发送html带图片文件的时候,会报554 DT:SPM ,

将下面的代码加入之后就会报错: msg.attach(MIMEText('<html><body><h1>Hello</h1>' + '<p><img src="cid:0"></p>' + '</body></html>', 'html', 'utf-8'))


  • 1

Reply