PEAR Mail_Queue (Again)
| From: | Matthew Robinson | Date: | Wed, 09 May 2007 13:08:09 +0000 |
| Subject: | PEAR Mail_Queue (Again) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27246@lists.php.net to get a copy of this message | ||
Sorry All, still having problems.
Thanks for the pointers from yesterday - indeed the issue was with the database connection parameters.
Mail_Queue is now working in a simple fashion but I'm trying to integrate it into some existing code.
I have an existing class that contains a mail() function that sorts out my mails from my site. I've changed all the variables around but when I try to declare the Mail_Queue class the code breaks.
I'm using:
include('./config.php');
$mail_queue =& new Mail_Queue($db_options, $mail_options);
The code fails at the $mail_queue line. What is the correct way o calling a new instance of the Mail_Queue class from my class function?
Thanks in advance,
Matt