#coding=utf8from Lib.AutoSendMail import AutoMailfrom Lib.XQL import RunXQLfrom Lib.mangerResultFile import FileMangerdef Run(): fm= FileManger() fm.clearResultCSV() sender=raw_input("发送人:") reciver=raw_input("接收人:") smtpServer=raw_input("发送邮件服务(如:mail.ximalaya.com',smtp.163.c0m):") passWord=raw_input("密码:") ject=raw_input("邮件名:") sendfile=fm.getLastFileWithPath() RunXQL() fm.moveCSVToSave() AutoMail(sender,reciver,smtpServer,password,ject,sendfile) if __name__=="__main__": Run()之前该项目的整体组织结构如下:不懂的可以私信我,这代码不是通用的,是为了减轻工作量,忙里偷懒。感兴趣可以操作下:
config.xml:
#download path<Download>C:/Users/e.wang/Downloads</Download>#save data file path<SavePath>E:/PythonDemo/XQLSendMail/Report</SavePath>完整项目源码下载链接:http://download.csdn.net/download/henni_719/9771946
新闻热点
疑难解答