gpt4 book ai didi

php - PEAR mail-queue教程配置麻烦

转载 作者:可可西里 更新时间:2023-11-01 08:53:16 25 4
gpt4 key购买 nike

我认为我在使用 PEAR 邮件队列教程的 .config 文件时遇到了问题。我检查了我的路径,没有问题。

<?php

require_once "Mail/Queue.php";

$db_options['type'] = 'db';
$db_options['dsn'] = 'mysql://mysqlusername:mysqlpasswd@localhost/mail';
$db_options['mail_table'] = 'mail_queue';

$mail_options['driver'] = 'smtp';
$mail_options['host'] = 'smtp.tiscali.co.uk';
$mail_options['port'] = 25;
$mail_options['localhost'] = 'localhost'; //optional Mail_smtp parameter
$mail_options['auth'] = false;
$mail_options['username'] = 'username';
$mail_options['password'] = 'passwd';

?>

我可以使用 smtp.tiscali.co.uk 独立发送 SMTP 邮件。我已经仔细输入了数据库邮件中的表。我添加了适当的 MySQL GRANT 权限。我的代码死在 add_message.php 中,但我知道一个事实,即输入了 mail_queue 语句。

<?php
include './config.php';
/* we use the db_options and mail_options here */
$mail_queue =& new Mail_Queue($db_options, $mail_options);
/* the rest */
?>

szerne 在 bluehostforum 上有一篇类似的帖子。 http://www.bluehostforum.com/archive/index.php/t-19791.html它看起来与我的,但使用 mdb2 容器。我不确定是否有任何细节很重要。任何帮助,将不胜感激!我很困惑。非常感谢,乔治

最佳答案

使用 MDB2。

无法安装 MDB2 及其 mysql 选项。PEAR 邮件队列教程中未明确提及。

现在运行良好。

关于php - PEAR mail-queue教程配置麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9365266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com