Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python C:\Users\xxx\zvt\examples\data_runner\kdata_runner.py 邮件无法连接 #235

Open
xinmans opened this issue Mar 19, 2025 · 0 comments

Comments

@xinmans
Copy link

xinmans commented Mar 19, 2025

activate zvt
python C:\Users\xxx\zvt\examples\data_runner\kdata_runner.py

2025-03-19 14:54:05,389  INFO  MainThread  record LimitUpInfo success
--- Logging error ---
Traceback (most recent call last):
  File "C:\ProgramData\miniconda3\envs\zvt\lib\site-packages\zvt\informer\informer.py", line 52, in send_message_
    smtp_client.connect(host=host, port=port)
  File "C:\ProgramData\miniconda3\envs\zvt\lib\smtplib.py", line 339, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "C:\ProgramData\miniconda3\envs\zvt\lib\smtplib.py", line 1042, in _get_socket
    new_socket = self.context.wrap_socket(new_socket,
  File "C:\ProgramData\miniconda3\envs\zvt\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\ProgramData\miniconda3\envs\zvt\lib\ssl.py", line 1031, in _create
    self._sslobj = self._context._wrap_socket(
ValueError: server_hostname cannot be an empty string or start with a leading dot.

config.json配置

 "smtp_host": "smtp.qq.com",
    "smtp_port": "587",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant