Re: Noobie SMTP Questions

From: Date: Wed, 02 Jul 2003 03:33:34 +0000
Subject: Re: Noobie SMTP Questions
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-20644@lists.php.net to get a copy of this message
Hello, On 07/01/2003 10:03 PM, Mark McCarthy wrote:
Thanks in advance to whomever takes this on. :) I'm realtively new to php and have begun using an opensource product as the CMS for my website. I like the product so much that I would like to run multiple installs on the same server. However, with the mail settings being defined in php.ini I can only have one smtp amd mailfrom defined. This is fine if I only want one of the domains to send mail, however each domain will need to send mail. Is there a way to set up the php.ini file so that each site can have it's own smtp?
No, you can't. You may want to try this class that comes with a sub-class for sending e-mail messages with SMTP. It also comes with a wrapper function named smtp_mail() that emulates the mail() function but sends the message via the class so you do not have to change much your code and still have configuration flexibility: http://www.phpclasses.org/mimemessage You also need this: http://www.phpclasses.org/smtpclass
The code from the product that grabs all the variables is below. Maybe I could modify this to get the results I'm looking for?
Global variables have nothing to do with php.ini settings. -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.windows (#20644) next »