今天日志中报错只有sendmail failed 错误信息 ,在目录中查找 data/data_mail.php 编辑查看其中内容 ,数组键值只有1-3个,经浏览代码发现,最起码数组键值包括 server(mailserver) , port(mailport),auth_username(mailauth_username),auth_password(mailauth_password)....正常情况下应该存在很多键值 ,目前没时间找到根本问题,简略修改了下function_sendmail.php:- function sendmail($toemail, $subject, $message, $from='') {
- global $_SC, $_SCONFIG, $_SGLOBAL, $space, $_SN, $_CACHE;
-
- $_SCONFIG['linkguide'] = 0;
-
- include template('sendmail');
- $message = ob_get_contents();
- obclean();
-
- include_once(S_ROOT.'./uc_client/data/cache/settings.php');
- $mail = $_CACHE['settings'];
复制代码 根据 settings.php 中数组所有键值名称重新修改 function_sendmail.php 中各项键值后,测试成功 |