Php PEAR邮件队列教程配置问题
我相信我在PEAR邮件队列教程的.config文件中遇到了问题。 我已经检查了我的路径,它们很好Php PEAR邮件队列教程配置问题,php,mysql,pear,mail-queue,Php,Mysql,Pear,Mail Queue,我相信我在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'; $m
<?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授予权限。
我的代码在这里的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 */
?>
在bluehostforum上有一篇由szerne撰写的类似帖子。
它看起来和我的没什么不同
我的,但使用mdb2容器。我不确定任何细节是否重要。
任何帮助都将不胜感激!我很困惑。非常感谢,George使用MDB2
未能安装MDB2及其mysql选项。
PEAR邮件队列教程中没有明确提到
现在效果很好。你能添加一个来自szerne的帖子链接吗?