PEAR Mail_Queue发送重复的电子邮件

问题描述 投票:0回答:2

这里有几个问题:

mail_queue->应该在数据库中插入两次消息吗?唯一的区别是time_to_send值和user_id。

这是我收到给一个用户的一条消息的结果:

1. user_id = 1, time_to_send = 2009-02-10 14:02:02
2. user_id = -1, time_to_send = 2009-02-10 14:00:02

第一个是我期望的,但是第二个是什么目的?

如果我发送队列,则消息将到达两次。如果我删除一个带有负user_id的邮件,则只会发送一封邮件。

php pear mail-queue
2个回答
1
投票
函数put($ from,$ to,$ hdrs,$ body,$ sec_to_send = 0,$ delete_after_send = true,$ id_user = MAILQUEUE_SYSTEM)

您传递参数$ id_user还是默认值?


0
投票

我逐行检查了程序,当然,put函数没有注释示例。

© www.soinside.com 2019 - 2024. All rights reserved.