Python中的smtplib在发送电子邮件时发送不需要的信息

时间:2018-08-16 20:10:42

标签: python smtplib

因此,我正在使用Python 3.x中的smtplib模块发送电子邮件。现在,我发送了一些需要发送的信息,然后又发送了一些不需要的信息,我不知道是否发送的是smtplib默认信息。

包含不必要信息的图像正在发送: Image containing unwanted info being sent

是否可以删除它?

这是我的Python代码:

import smtplib
mail = smtplib.SMTP("smtp.gmail.com", 587)
mail.ehlo()
mail.starttls()
mail.login("someemail", "somepassword")
mail.sendemail("someadress", "reciver", "This is content being sent")
mail.close()

因此,假设我只想发送“这是正在发送的内容”,但它会添加此防病毒信息。

0 个答案:

没有答案
相关问题