老大,api调用出现这个问题,怎么解决?
https://api.tianjindada.com/030332c0d0ce5d0b7148a68cbb153bba/mail.php
调用:http://面板地址/mail_sys/send_mail_http.json
- 出错了,[宝塔邮局管理器]运行时发生错误!
- KeyError: 'postfix'
- REQUEST_DATE: 2024-11-23 22:26:01
- PAN_VERSION: 9.1.0
- OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9)
- REMOTE_ADDR: 1.92.145.201
- REQUEST_URI: POST /mail_sys/send_mail_http.json%3F
- REQUEST_FORM: {'mail_from': '****@163.com', 'password': '********', 'mail_to': '****@163.com', 'subject': 'Test Email', 'content': 'This is a test email sent from PHP.'}
- USER_AGENT: None
- Traceback (most recent call last):
- File "pluginAuth.py", line 449, in pluginAuth.Plugin.exec_fun
- File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2051, in send_mail_http
- if not service_status['postfix']:
- KeyError: 'postfix'
复制代码 |