-
2021-02-12 14:40:45
网上找了一份James+Javamail构建邮件服务教材,但关于打印该邮件的内容没细讲,直说了一句只要将message[i]对象中的邮件内容等信息读取出来就可以了,求大神指点下//初始化主机Stringhos...
网上找了一份James+Javamail构建邮件服务教材,但关于打印该邮件的内容没细讲,直说了一句只要将message[i]对象中的邮件内容等信息读取出来就可以了,求大神指点下
// 初始化主机
String host = "localhost";
String username = "...";
String password = "...";
// 配置服务器属性
Properties props = new Properties();
props.put("mail.smtp.host", "localhost"); // smtp服务器
props.put("mail.smtp.auth", "true"); // 是否smtp认证
props.put("mail.smtp.port", "25"); // 设置smtp端口
props.put("mail.transport.protocol", "smtp"); // 发邮件协议
props.put("mail.store.protocol", "pop3"); // 收邮件协议
// 获取会话
Session session = Session.getDefaultInstance(props, null);
// 获取Store对象,使用POP3协议,也可能使用IMAP协议
try {
Store store = session.getStore("pop3");
// 连接到邮件服务器
store.connect(host, username, password);
// 获取该用户Folder对象,并以只读方式打开
Folder folder = store.getFolder("inbox");
folder.open(Folder.READ_ONLY);
// 检索所有邮件,按需填充
Message message[] = folder.getMessages();
for (int i = 0; i < message.length; i++) {
// 打印出每个邮件的发件人和主题
System.out.println(i + ":" + message[i].getFrom()[0] + "\t" + message[i].getSubject());
}
folder.close(false);
store.close();
}
展开
更多相关内容 -
邮件分析.xlsm(VBA批量邮件内容导入EXCEL)
2020-04-17 17:12:54利用VBA技术批量将邮件(.eml格式)内容抽取到EXCEL,并利用工具中的检索功能,实现关键字搜索,快速定位需要查找的邮件,提高工作效率 -
Python 如何提取邮件内容
2020-08-18 17:49:51今天分享的文章主要讲解如何从邮件里面提取用户返回的线上问题内容并做解析,通过拿到的数据信息进行分析整理,然后进行封装请求禅道里的接口进行提交,提交请求过程中会对数据库中是否存在进行一次判断处欢迎关注【无量测试之道】公众号,回复【领取资源】,
Python编程学习资源干货、
Python+Appium框架APP的UI自动化、
Python+Selenium框架Web的UI自动化、
Python+Unittest框架API自动化、资源和代码 免费送啦~
文章下方有公众号二维码,可直接微信扫一扫关注即可。今天分享的文章主要讲解如何从邮件里面提取用户返回的线上问题内容并做解析,通过拿到的数据信息进行分析整理,然后进行封装请求禅道里的接口进行提交,提交请求过程中会对数据库中是否存在进行一次判断处理,如果没有存在的就提交,如果数据库中存在就不用再提交,基于这个思路来看下今天的分享。
基础信息准备
import imaplib, email,re,requests,time,pymysql imapserver = 'smtp.office365.com' emailuser = "qa.notice@qq.com" emailpasswd = "test123" #beta环境禅道地址 beta_loginhost="http://zen.beta.com/index.php?m=user&f=login" beta_add_bughost="http://zen.beta.com/index.php?m=bug&f=create&productID=10&branch=0&extra=moduleID=0" #live环境禅道地址 live_loginhost="https://zen.live.com/index.php?m=user&f=login" live_add_bughost="https://zen.live.com/index.php?m=bug&f=create&productID=10&branch=0&extra=moduleID=0" envs="live" #定义使用的环境
数据库连接信息
#连接数据库相关的信息: beta_dicts={ "HOST" : '10.8.2.3', "PORT" : 3306, "USER": 'zentao', "PASSWORD" : 'test123', "NAME":"zentao" } live_dicts={ "HOST" : '10.7.1.7', "PORT" : 3306, "USER": 'zentao', "PASSWORD" : 'test123', "NAME":"zentao" }
数据库查询
#数据库查询操作 def executesql(query,envs): try: if(envs=="beta"): conn = pymysql.connect(beta_dicts['HOST'], beta_dicts['USER'], beta_dicts['PASSWORD'], beta_dicts['NAME'], int(beta_dicts['PORT']),charset='utf8') print(beta_dicts) else: conn = pymysql.connect(live_dicts['HOST'], live_dicts['USER'], live_dicts['PASSWORD'], live_dicts['NAME'], int(live_dicts['PORT']),charset='utf8') print(live_dicts) cursor = conn.cursor() cursor.execute(query) result =cursor.fetchall() print("execute successfully!!!") if(len(result)==0): return 0 else: return result[0][0] except Exception as e: print(e) print("execute failed") finally: cursor.close() conn.close()
建立连接与检索
#建立连接与检索匹配的邮件 def search(): print("start to connect") conn = imaplib.IMAP4_SSL(imapserver) conn.login(emailuser, emailpasswd) conn.select('INBOX') # 选择收件箱(默认) print(conn) now = time.localtime() nowt = time.strftime("%d-%b-%Y", now) print(nowt) results , data = conn.search(None,'(FROM "Liang.Wu")','(ON "'+str(nowt)+'")') mailidlist = data[0].split() print(mailidlist) try: for id in mailidlist: print(id) resultss, data = conn.fetch(id, '(RFC822)') # 通过邮件id获取邮件,data是fetch到的邮件具体内容 e = email.message_from_bytes(data[0][1])
解释说明与Print
''' Header()类: email.header.Header(s=None, charset=None, maxlinelen=None, header_name=None, continuation_ws=' ', errors='strict') 其中参数的含义理解如下: s:标头的值,也就是对应 From、To、Subject 的值; charset:字符集格式,默认是 ASCII,但是一般指定 UTF-8 格式以兼容更多字符; header_name:标头名,就是 From、To、Subject、Time 等; ''' subject = email.header.make_header(email.header.decode_header(e['SUBJECT'])) mail_from = email.header.make_header(email.header.decode_header(e['From'])) print("邮件的subject是%s" % subject) print("邮件的发件人是%s" % mail_from) body = str(get_body(e), encoding='ISO-8859-1') # utf-8 gb2312 GB18030解析中文日文英文 print("邮件内容是%s" % body) parse1(body) print("good job") except Exception as e: print("we catch an error!!!",e) finally: print("logout is success") print("the finally of operation!!!") conn.logout()
获取邮件主体信息
#获取邮件主体信息 def get_body(msg): if msg.is_multipart ():#Return True if the message’s payload is a list of sub-Message objects, otherwise return False. When is_multipart() returns False, the payload should be a string object. return get_body(msg.get_payload(0)) else: '''Return the current payload, which will be a list of Message objects when is_multipart() is True, or a string when is_multipart() is False. If the payload is a list and you mutate the list object, you modify the message’s payload in place.''' return msg.get_payload(None , decode=True)
解析邮件内容并提交禅道
# 解析邮件内容并调用禅道提交(上一篇文章结合来看) def parse1(body): pattern = re.compile('Dear Colleagues,<br>(.*?)Thanks and Regards,<br>', re.S) pattern1 = re.compile('black">(.*?)<o:p>', re.S) pattern2=re.compile(';">\r(.*?);\r<',re.S) lists = re.findall(pattern, body) print("*"*10) lists = str(lists[0]).replace("\n", "").split("<br>") print(lists) resultlist = [] for i in range(len(lists)): if (len(lists[i]) > 1): resultlist.append(lists[i]) print(resultlist) id = resultlist[1] ids=str(str(resultlist[1]).split(":")[1]).lstrip() Subject = resultlist[2] Subjects="[FeedBack-"+str(str(resultlist[1]).split(":")[1]).lstrip() + "]--"+str(str(resultlist[2]).split(":")[1]) Creator = resultlist[3] Creators = str(str(resultlist[3]).split(":")[1]) Category = resultlist[4] IssueCategory = resultlist[5] if ("Low" in resultlist[6]): Severity = "4" Severity_desc = "Severity: Low (Limited business impact)" if ("Medium" in resultlist[6]): Severity = "3" Severity_desc = "Severity: Medium (Functional but impact operations)" if ("High" in resultlist[6]): Severity = "2" Severity_desc = "Severity: High (Major system outage)" Module = resultlist[7] if('black">' in resultlist[8] and '<o:p>' in resultlist[8]): Details = str(re.findall(pattern1, resultlist[8])[0]).replace(""", "\"") if(';">\r' in resultlist[8] and ';\r<' in resultlist[8]): Details = str(re.findall(pattern2, resultlist[8])[0]).replace(""", "\"") link = resultlist[9] steps = id + "<br>" + Subject + "<br>" + Creator + "<br>" + Category + "<br>" + IssueCategory + "<br>" + Severity_desc + "<br>" + Module + "<br>" + Details + "<br>" + link print(steps.replace("<br>", "\n")) sql="SELECT * FROM zt_bug WHERE title LIKE \"[FeedBack-"+str(ids)+"%\"" print(sql) if(executesql(sql,envs)>=1): print("there is an record exists!!!") #add_bug(Subjects, Creators, Severity, steps,envs) else: add_bug(Subjects,Creators,Severity,steps,envs)
提交bug至禅道
#提交bug到禅道的方法 def add_bug(a,b,c,d,e): #此方法可以与上一遍文章结合在一起提交到禅道 pass
以上内容就是今天分享的全部内容,这个最后的方法也是空着的,所以这里也就回答了上一篇文章中大家提到的疑问—->自动提交bug到禅道的使用场景会是怎么样的。
备注:我的个人公众号已正式开通,致力于测试技术的分享,包含:大数据测试、功能测试,测试开发,API接口自动化、测试运维、UI自动化测试等,微信搜索公众号:“无量测试之道”,或扫描下方二维码:
添加关注,让我们一起共同成长!
-
outlook 2003 提取邮件内容中的地址
2010-08-19 10:34:02提取outlook 2003 提取邮件内容中的地址 如果邮件在outlook express 中可以先导入到outlook 2003中 -
SplunkPull:从 splunk 中提取数据以用于自动电子邮件程序
2021-06-12 05:08:11适用于 Java 的 Splunk 软件开发工具包 版本 1.3.2 适用于 Java 的 Splunk 软件开发工具包 (SDK) 包含旨在使开发人员能够使用 Splunk 构建应用程序的库代码和示例。 Splunk 是一个搜索引擎和分析环境,它使用... -
python自动定时读取outlook邮件内容
2022-04-13 11:32:46使用python读取outlook邮件内容第一次实习,什么也不会,公司让写一个自动定时读取邮件的代码,只好自己去网上搜,踩了很多坑,现在终于弄好了,在这里记录一下,也希望能给需要的人一点帮助。
首先就是登陆邮箱并读取邮件,outlook的话一般使用imap连接,如果是qq邮箱可以使用pop3连接,因为pop3连接一般要求账号是数字开头,但是一般邮件如outlook都是字母开头,所以除了qq邮箱其他建议使用imap。我这边的要求是读取未读邮件。所以email_type选择的是UNSEEN,如果是全部读取可以设置为ALL。
# 登陆邮箱并读取原始邮件 def get_mail(email_address, passsword): # 选择服务器 server = imaplib.IMAP4_SSL('outlook.office365.com') server.login(email_address, passsword) inbox = server.select("INBOX") # 搜索匹配的邮件 email_type, data = server.search(None, "UNSEEN") # 邮件列表,使用空格分割得到邮件索引 msglist = data[0].split() if len(msglist) != 0: # 最新邮件 latest = msglist[len(msglist)-1] email_type, datas = server.fetch(latest, '(RFC822)') # 使用utf-8解码 text = datas[0][1].decode('utf-8') # 转为email.message对象 message = email.message_from_string(text) # 获取未读邮件数量 server.select() email_unseen_count = len(server.search(None, 'UNSEEN')[1][0].split()) print('未读邮件一共有:', email_unseen_count) email_unseen_id_byte = server.search(None, 'UNSEEN')[1][0].split() email_unseen_id = [] for row in email_unseen_id_byte: email_unseen_id.append(row.decode('utf-8')) print(email_unseen_id) return message else: print("暂无未读邮件")
然后就是解析邮件内容了,将原始邮件转化为可读邮件,邮件的subject或者email中包含的名字都是经过编码后的字符串,要正常显示就必须decode,定义一个decode函数。
# 将原始邮件转化为可读邮件 def decode_str(s): value, charset = decode_header(s)[0] if charset: value = value.decode(charset) return value
这里有一个注意的点是导入decode_headers时是从email.header中导入,如果从nntplib中导入会因为格式不对而报错。
import email import imaplib from email.utils import parseaddr from email.header import decode_header #正确 #from nntplib import decode_header 错误
为了防止非utf-8编码的邮件无法显示,定义一个检测邮件编码函数
def guess_charset(msg): charset = msg.get_charset() if charset is None: content_type = msg.get('Content-Type','').lower() pos = content_type.find('charset=') if pos >= 0: charset = content_type[pos + 8:].strip() return charset
接下来是通过循环遍历来读取邮件内容
def print_info(msg, indent=0): if indent == 0: for header in ['From', 'To', 'Subject']: value = msg.get(header, '') if value: if header == 'Subject': value = decode_str(value) else: hdr, addr = parseaddr(value) name = decode_str(hdr) value = u'%s <%s>' % (name, addr) print('%s%s: %s' % (' ' * indent, header, value)) ''' if msg.is_multipart(): parts = msg.get_payload() for n, part in enumerate(parts): #print('%spart %s' % (' ' * indent, n)) #print('%s--------------------' % (' ' * indent)) print_info(part, indent + 1) else: content_type = msg.get_content_type() if content_type == 'text/plain' or content_type == 'text/html': content = msg.get_payload(decode=True) charset = guess_charset(msg) if charset: content = content.decode(charset) print('%sText: %s' % (' ' * indent, content + '...')) else: print('%sAttachment: %s' % (' ' * indent, content_type)) '''
上面的代码中被注释掉的是邮件的内容,因为我觉得内容太多不想显示所以就注释掉了,有需要的可以自己去掉注释符号。
最后就是主函数调用上面的函数,输出邮件内容了
if __name__ == "__main__": email_addr = "xxxxxxxx@outlook.com" password = "xxxxxxxxx" messageObject = get_mail(email_addr, password) if messageObject: msgDate = messageObject["date"] print("发送时间:%s" % msgDate) res = print_info(messageObject) print(res)
email_addr就是邮件的账号,password就是密码,我还设置了一个发送的时间,是对方发送邮件的时间,如果对方是别的国家,时间可能和这边对不上,我也暂时没找到合适的解决办法
给大家看一下结果,这是不显示邮件内容的情况下
因为想要更加解放人力,所以设置了定时启动程序,这样每天只要打开定时程序就可以了
#定义tick,执行我们的python读取邮件任务 def tick(): print("tick! the time is :%s" % datetime.now()) os.system("python email_imaplib_t.py") #设置每10分钟运行一次tick,每5分钟睡眠一次 if __name__ == "__main__": scheduler = BackgroundScheduler(timezone="Asia/ShangHai") scheduler.add_job(tick, 'interval', minutes=10, start_date="2022-4-1 15:00:00") scheduler.start() print("Press ctrl + {0} to exit".format('Break' if os.name == 'nt' else 'C')) try: while True: time.sleep(300) print(f"sleep!-{datetime.now()}") except(KeyboardInterrupt, SystemExit): scheduler.shutdown() print("exit the job")
结果如下
-
一个简单的自动发送邮件系统(三)
2020-12-17 15:03:48一个简单的自动发送邮件系统(三) 这里介绍php和mysql结合起来实用。如何从mysql数据库中提取数据。 好,我们已经成功的完成了我们的要求,很多的数据已经存在了数据库中,现在的问题是,如何查询这些数据,得到... -
dephi网页邮箱自动提取+邮件群发源码
2014-08-15 16:51:59dephi网页邮箱自动提取+邮件群发源码 -
电子邮件提取器「Email Extractor」-crx插件
2021-03-20 06:51:48强大的扩展,以提取电子邮件ID自动从网页。新功能:自动访问网站和自动保存电子邮件id。 在几秒钟内找到电子邮件地址。电子邮件提取器是功能强大的Chrome浏览器电子邮件提取扩展程序 Extension会自动从网页上获取有效... -
Outlook-VBA-05-自动获取邮件附件
2021-10-23 09:59:51使用outlook-VBA二次开发,自动获取特定发件人,特定主题下的附件,将其存储到本地系统:Windows 10
软件:Outlook 2016- 本系列讲讲在Outlook中使用VBA实现一些功能
- 今天讲讲如何将特定人员,特定主题的邮件的附件存储到本地
Part 1:场景描述
- 工作中,希望另外一方定期给自己分发一些报告,在本地写了一个自动处理报告的程序。
- 对方可以写一个程序,自动发送邮件
- 而我们需要定期获取对方发过来的报告,有很多种方式,如ftp,假设只能采用邮箱的这种方式
Part 2:基本逻辑
- 设置一个事件,收到新邮件则触发
- 获取新邮件的发件人邮箱,主题信息,以及是否有附件
- 满足条件后,将附件存储到本地
收到一封新邮件
自动存储
Part 3:代码
Private WithEvents Items As Outlook.Items Private Sub Application_Startup() Dim outlookFldr As Folder Dim outlookName As NameSpace Set outlookName = Application.GetNamespace("MAPI") Set outlookFldr = outlookName.GetDefaultFolder(olFolderInbox) Set Items = outlookFldr.Items End Sub Private Sub Items_ItemAdd(ByVal Item As Object) '邮件主题 Debug.Print ("新收到的邮件主题是:" & Item.Subject) MsgBox "新收到的邮件主题是:" & Item.Subject subject_info = Item.Subject '发件人 Debug.Print ("新收到的邮件发件人是:" & Item.SenderName) Debug.Print ("新收到的邮件发件人是:" & Item.SenderEmailAddress) send_person = Item.SenderEmailAddress '附件 attachmentsCount = Item.Attachments.Count Debug.Print ("附件数目为:" & attachmentsCount) If InStr(subject_info, "广东") <> 0 And send_person = "XXX@163.com" And attachmentsCount > 0 Then For Each Attachment In Item.Attachments attachmentFileName = Attachment.FileName Debug.Print ("附件名称为:" & attachmentFileName) newFileAddress = "D:\xxx\【3】文章\Outlook\20211023-outlook-05-多条件处理" & "\" & attachmentFileName If Dir(newFileAddress) <> "" Then Debug.Print ("文件已存在,将删除后保存") Kill newFileAddress End If Attachment.SaveAsFile (newFileAddress) Next End If End Sub
代码截图
Part 4:部分代码解读
subject_info = Item.Subject
获取邮件主题send_person = Item.SenderEmailAddress
获取发件人的邮箱Item.Attachments.Count
获取附件的数目InStr(subject_info, "广东") <> 0
可以用来判断是否包括某字符串- 关于事件功能,文件另存为,之前文章有所讲述
- 更多学习交流,可加小编微信号
learningBin
更多精彩,请关注微信公众号
扫描二维码,关注本公众号 -
如何从电子邮件(Outlook)中提取内容到excel表?
2021-03-09 17:40:00我试图通过VBA将Outlook中的电子邮件内容提取到Excel表中 .电子邮件用于度假管理 .在主题中总是有关键字"Accepted holiday - Mr. James"詹姆斯先生是雇员的名字,接受哪些假期 . 因此关键字"Accepted holiday"始终... -
Java读取邮件的方法
2020-09-03 23:09:45主要介绍了Java读取邮件的方法,以163邮件服务器为例说明了Java读取邮件的实现技巧,具有一定参考借鉴价值,需要的朋友可以参考下 -
详解python实现读取邮件数据并下载附件的实例
2020-09-21 05:47:43主要介绍了详解python读取邮件数据并下载附件的实例的相关资料,这里提供实现实例,帮助大家学习理解这部分内容,需要的朋友可以参考下 -
msg-extractor, 在 Outlook. msg的文件中,提取保存的电子邮件和附件.zip
2019-09-18 09:34:54msg-extractor, 在 Outlook. msg的文件中,提取保存的电子邮件和... msg Outlook 文件中python 脚本 ExtractMsg.py 自动提取关键电子邮件数据( 从。到。抄送。日期。主题。正文) 和电子邮件附件。使用它 python Extra -
autolink-java:Java库,用于从纯文本中提取链接(URL,电子邮件地址); 快速,小巧,智能
2021-05-10 05:04:22Java库,用于从纯文本中提取诸如URL和电子邮件地址之类的链接。 明智的做法是知道链接在何处结束(例如使用尾随标点符号)。 介绍 您可能会想:“为此我需要一个库吗?我可以为此编写一个正则表达式!”。 让我们看... -
python3 自动读取邮件
2022-01-06 10:52:46imbox库读取邮件 import os from imbox import Imbox # 存储附件 def save_attachments(attachments, save_dir): fujian_path_list = [] for attachment in attachments: save_path = os.path.join(save_dir, ... -
C#邮件自动接收,分析提取邮件地址哈希表源码
2011-01-25 10:13:03这个是定向程序,当时我公司内有一信箱向外不断发邮件,结果有很多退信,这个程序就是负责从退信中提取邮件地址,然后从给DBA从邮件发送列表中给清除. -
autoastero:自动提取全局抗震参数
2021-04-05 07:27:152009)的python翻译,用于自动提取全局地震参数。 请注意,SYDpy正在积极开发中,因此大多数可用的代码和文档正在建设中。 请随时通过向我发送电子邮件,以有关该包中实施的更多详细信息或新想法。 *主要目标是面向... -
风越批量文本提取器 _可将HTML等文件中指定内容存入数据库、HTML、文本文件.zip
2021-04-10 08:38:47提取DOC/RTF等文件中全部文本内容(自动分析标题) 并可自定义正则表达式获取信息 支持从其它网站直接提取文本内容,生成所需数据库文件 支持GB2312/UTF-8多种编码 可将提取信息生成文本文件、HTM网页文件、MDB... -
该插件允许Roundcube的用户添加POP3帐户并自动从中提取电子邮件
2021-05-14 10:55:04Pop3fetcher是流行的Roundcube IMAP客户端的插件,该插件允许Roundcube的用户添加POP3帐户并自动从中提取电子邮件 您喜欢这个插件,并想为开发做出贡献吗? 请点击此链接,然后为我提供Paypal咖啡! 如何安装: ... -
网页链接提取工具.rar
2020-01-05 21:15:11软件功能:本工具可一键提取网页上的链接网址、链接标题、电话号码、手机号码、电子邮件、身份证号码、IP地址等内容; 友情提示:软件只能提取网页上的信息,网页上没有的信息提取不到,需要登录才能显示的信息或... -
如何提取邮件内指定内容到Excel指定的单元格中
2021-07-30 14:12:42每天会收到很多邮件,想把这些邮件内容自动提取到Excel对应的列中,有办法实现吗? -
python3读取解析邮件内容
2017-09-20 21:07:26POP3收取邮件 SMTP用于发送邮件,如果要收取邮件呢? 收取邮件就是编写一个MUA作为客户端,从MDA把邮件获取到用户的电脑或者手机上。收取邮件最常用的协议是POP协议,目前版本号是3,俗称POP3。 Python内置... -
php定时自动发送邮件(从数据库取数据)(超详细版本)
2021-11-24 21:59:11php定时自动发送邮件(从数据库取数据)设置定时器,sendmail+sleep()并且解决了发送的邮件标题为乱码的情况,set_time_limit() $interval。 -
自动从数据库提取数据并发送邮件
2017-01-22 16:08:04DATE=`date "+%Y-%m-%d"` /usr/local/mysql/bin/mysql -uroot -p12356 -h10.10.10.10 -e "select pic_url from 123 where 123 > \"$DATE\"" | grep -v pic_url > /tmp/$DATE.txt sed -i 's/^/123.123.cn\//g' /t -
python实现艾宾浩斯背单词功能,实现自动提取单词、邮件发送,部署在阿里云服务器,再也不用担心背单词啦!...
2020-02-04 10:17:49已经完成了利用python爬虫实现定时QQ邮箱推送英文文章,辅助学习英语的项目,索性就一口气利用python多做一些自动化辅助英语学习的项目,对自己的编程能力和英文水评也有一定的帮助,于是在两天的努力下,我完成了... -
python邮件接收发送【完整脚本】
2021-07-15 10:29:09python 发送邮件、添加附件、读取邮箱邮件完整脚本。有问题,请添加博主,留言 -
Python自动化读取邮件基础代码讲解
2021-02-04 11:57:54大家好,在之前的文章中我们已经了解如何对自己的邮箱做一些代码操作前的基础配置,也学会了通过 yagmail 发送邮件。这篇文章将分别介绍两个很实用的收取及读取邮件的库:imbox 和 poplib,主要将讲解:“imbox收取... -
垃圾邮件识别(一):用机器学习做中文邮件内容分类
2022-02-10 20:18:27垃圾邮件内容分类(通过提取垃圾邮件内容进行判断) 中文垃圾邮件分类 英文垃圾邮件分类 垃圾邮件标题分类 垃圾邮件发送方分类 最终,我们可以根据这三个维度进行综合评判,从而实现垃圾邮件的准确分类。本文将根据... -
python自动发送邮件---问题归纳
2022-03-11 14:54:20自动发送邮件:有一些未处理的表,自动处理后,由系统自动发送邮件给收件人 问题描述: 1、如何配置服务器? 2、如何解决读取收件人信息的难题? 3、如何读取正文文本? 4、如何发送多个附件且只发送一次? 5、如何...