Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 邮件提醒问题

[复制链接]
无叶 发表于 2009-1-31 04:03:22 | 显示全部楼层 |阅读模式
本帖最后由 茄子 于 2009-2-16 13:52 编辑

在function_cp.php($Id: function_cp.php 10978 2009-01-14 02:39:06Z liguode $)里面的
function smail函数,找到:
!empty($sendmail[$mailtype])

可是这个$mailtype在整个function中没有再次提到,也就是说邮件提醒的类型选项是不起作用的。
sup 发表于 2009-2-2 11:26:57 | 显示全部楼层
这个确实存在问题,我们修正一下
回复

使用道具 举报

liti520 发表于 2009-2-5 20:02:11 | 显示全部楼层
邮件提醒基本没见过……
回复

使用道具 举报

twinasia 发表于 2009-2-6 11:56:31 | 显示全部楼层
終於 認了有問題~~

之前玻璃屋女孩 一直跟我說正常~~ 那時真悶~~

謝謝樓主的分析
回复

使用道具 举报

xgq101365 发表于 2009-2-15 22:13:14 | 显示全部楼层
什么时候修正啊????
我也遇到这个问题

没有提醒邮件发送
回复

使用道具 举报

茄子 发表于 2009-2-16 13:52:38 | 显示全部楼层
本帖最后由 茄子 于 2009-3-3 10:34 编辑

打开
./source/function_cp.php
找到
!empty($sendmail[$mailtype])
替换为
1

打开
./souce//do_sendmail.php
找到

//开始发送
include_once(S_ROOT.'./source/function_sendmail.php');
foreach ($list as $cid => $value) {
    $mlist = $sublist[$cid];
    if($value['email'] && $mlist) {
        $subject = getstr($mlist[0]['subject'], 80, 0, 0, 0, 0, -1);
        $message = '';
        foreach ($mlist as $subvalue) {
            if($subvalue['message']) {
                $message .= "<br><strong>$subvalue[subject]</strong><br>$subvalue[message]<br>";
            } else {
                $message .= $subvalue['subject'].'<br>';
            }
        }
        if(!sendmail($value['email'], $subject, $message)) {
            runlog('sendmail', "$value[email] sendmail failed.");
        }
    }
}

//更新用户最后发送时间
if($touids) {
    $_SGLOBAL['db']->query("UPDATE ".tname('space')." SET lastsend='$_SGLOBAL[timestamp]' WHERE uid IN (".simplode($touids).")");
}

//删除邮件
$_SGLOBAL['db']->query("DELETE FROM ".tname('mailcron')." WHERE cid IN (".simplode($cids).")");
$_SGLOBAL['db']->query("DELETE FROM ".tname('mailqueue')." WHERE cid IN (".simplode($cids).")");

修改为

//更新用户最后发送时间
if($touids) {
    $_SGLOBAL['db']->query("UPDATE ".tname('space')." SET lastsend='$_SGLOBAL[timestamp]' WHERE uid IN (".simplode($touids).")");
}

//删除邮件
$_SGLOBAL['db']->query("DELETE FROM ".tname('mailcron')." WHERE cid IN (".simplode($cids).")");
$_SGLOBAL['db']->query("DELETE FROM ".tname('mailqueue')." WHERE cid IN (".simplode($cids).")");
//开始发送
include_once(S_ROOT.'./source/function_sendmail.php');
foreach ($list as $cid => $value) {
    $mlist = $sublist[$cid];
    if($value['email'] && $mlist) {
        $subject = getstr($mlist[0]['subject'], 80, 0, 0, 0, 0, -1);
        $message = '';
        foreach ($mlist as $subvalue) {
            if($subvalue['message']) {
                $message .= "<br><strong>$subvalue[subject]</strong><br>$subvalue[message]<br>";
            } else {
                $message .= $subvalue['subject'].'<br>';
            }
        }
        if(!sendmail($value['email'], $subject, $message)) {
            runlog('sendmail', "$value[email] sendmail failed.");
        }
    }
}
回复

使用道具 举报

nnorther 发表于 2009-2-16 15:02:53 | 显示全部楼层
mark.............
回复

使用道具 举报

Q99 发表于 2009-2-16 16:46:52 | 显示全部楼层
打开
./source/function_cp.php
找到
!empty($sendmail[$mailtype])
替换为
1
茄子 发表于 2009-2-16 13:52

去掉这个验证就可以了?!
我去掉了,在测试机器上似乎没起作用啊?!邮箱验证都发送成功了,提醒还是没有,奇怪!
回复

使用道具 举报

king3039 发表于 2009-2-16 18:48:43 | 显示全部楼层
先去试一试看看行不行
回复

使用道具 举报

liulinhang 发表于 2009-2-16 23:04:59 | 显示全部楼层
试试看...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-20 17:22 , Processed in 0.557823 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表