VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 33
声望: 2

设置了SMTP交易后通知,每次交易后会出现这个错误:

Traceback (most recent call last):
File "C:\veighna_studio\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\veighna_studio\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 655, in run
smtp.login(
File "C:\veighna_studio\lib\smtplib.py", line 714, in login
self.ehlo_or_helo_if_needed()
File "C:\veighna_studio\lib\smtplib.py", line 611, in ehlo_or_helo_if_needed
if not (200 <= self.ehlo()[0] <= 299):
File "C:\veighna_studio\lib\smtplib.py", line 451, in ehlo
self.putcmd(self.ehlo_msg, name or self.local_hostname)
File "C:\veighna_studio\lib\smtplib.py", line 378, in putcmd
self.send(f'{s}{CRLF}')
File "C:\veighna_studio\lib\smtplib.py", line 365, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first

请问是什么问题?

Member
avatar
加入于:
帖子: 4774
声望: 289

是不是没有打开smtp功能

Member
avatar
加入于:
帖子: 33
声望: 2

smtp功能打开了

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】