2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last): File "./Envelop.py", line 95, in OnBar return Main.OnBar(context, code, bartype) File "./Main.py", line 96, in OnBar SendEmail(mailtext) File "./Main.py", line 41, in SendEmail from email.MIMEText import MIMEText ImportError: No module named 'email.MIMEText'
2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last): File "./Envelop.py", line 95, in OnBar return Main.OnBar(context, code, bartype) File "./Main.py", line 96, in OnBar SendEmail(mailtext) File "./Main.py", line 41, in SendEmail from email.MIMEText import MIMEText ImportError: No module named 'email.MIMEText'
2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last): File "./Envelop.py", line 95, in OnBar return Main.OnBar(context, code, bartype) File "./Main.py", line 96, in OnBar SendEmail(mailtext) File "./Main.py", line 41, in SendEmail from email.MIMEText import MIMEText ImportError: No module named 'email.MIMEText'
不错
我是按着客服提供的代码,去添加的, 在添加前是没任何错误的,只是改动了邮件信息其他的都没有动呢,我首先能确定我的邮号是一定能发SMTP的,密码也是肯定没有错的。换了账号试了也是一样。我想问一下是你们的代码不适合在这个版本使用吗?
这是我报错的情况 百试不爽 还是老是出错 对于我这样的新手真是烦恼呀,能回复一下帮我解答吗
2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last):
File "./Envelop.py", line 95, in OnBar
return Main.OnBar(context, code, bartype)
File "./Main.py", line 96, in OnBar
SendEmail(mailtext)
File "./Main.py", line 41, in SendEmail
from email.MIMEText import MIMEText
ImportError: No module named 'email.MIMEText'
我试了一下,似乎不行。
帮助文档里面列举的系统支持的库,没有包括邮件相关的库。
465要用SMTP_SSL()才可以。
这是我报错的情况 百试不爽 还是老是出错 对于我这样的新手真是烦恼呀,能回复一下帮我解答吗
2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last):
File "./Envelop.py", line 95, in OnBar
return Main.OnBar(context, code, bartype)
File "./Main.py", line 96, in OnBar
SendEmail(mailtext)
File "./Main.py", line 41, in SendEmail
from email.MIMEText import MIMEText
ImportError: No module named 'email.MIMEText'
我这一条是这么写的: from email.mime.text import MIMEText
你这个好像写错了。
可以参考 https://quant.pobo.net.cn/doc?name=emailmonitor&menu=false
python本身就自带处理邮件的库
这是我报错的情况 百试不爽 还是老是出错 对于我这样的新手真是烦恼呀,能回复一下帮我解答吗
2019-12-02 13:30:00.000 - ERROR - Traceback (most recent call last):
File "./Envelop.py", line 95, in OnBar
return Main.OnBar(context, code, bartype)
File "./Main.py", line 96, in OnBar
SendEmail(mailtext)
File "./Main.py", line 41, in SendEmail
from email.MIMEText import MIMEText
ImportError: No module named 'email.MIMEText'