Hi again,
I just wonder if I need to setup email server (postfix,qmail,sendmail) in order to use mail() function in php? If not, what do I have to configure for mail() function to work properly? I'm using CentOS 4.2.
Thanks for your help, JC
Am Do, den 03.11.2005 schrieb JC um 22:39:
I just wonder if I need to setup email server (postfix,qmail,sendmail) in order to use mail() function in php? If not, what do I have to configure for mail() function to work properly? I'm using CentOS 4.2.
JC
Yes, you either need an MTA or at least a message submission program like msmtp or esmtp.
Alexander
Jc wrote on Thu, 3 Nov 2005 13:39:52 -0800 (PST):
I just wonder if I need to setup email server (postfix,qmail,sendmail) in order to use mail() function in php? If not, what do I have to configure for mail() function to work properly? I'm using CentOS 4.2.
If possible at all, don't use mail(), better use an SMTP class. Anyway, for both you need a working MTA.
Kai
Am Fr, den 04.11.2005 schrieb Kai Schaetzl um 2:31:
Jc wrote on Thu, 3 Nov 2005 13:39:52 -0800 (PST):
I just wonder if I need to setup email server (postfix,qmail,sendmail) in order to use mail() function in php? If not, what do I have to configure for mail() function to work properly? I'm using CentOS 4.2.
If possible at all, don't use mail(), better use an SMTP class. Anyway, for both you need a working MTA.
Kai
Right, a very good annotation about not using the mail() function, but to use i.e.
http://phpmailer.sourceforge.net/
or Pear's class
http://pear.php.net/package/Mail
Instead of a fully featured MTA a submitter can be enough, which hands the outgoing mail over to a mail hub (which then typically masquerades ...).
Alexander