Hi there,
Quote:
Originally Posted by shongale
I am having a problem with the mail() function in PHP 5.3.2, I am running CentOS 6 with Apache 2.2.15
My problem is I am totally confused.
Do I need to have postfix and DoveCot working before the smtp address I configured in /etc/php.ini will work?
|
have you used PHP on a Windows host before? That's where the SMTP parameters in php.ini are used, because Windows doesn't have an MTA (Mail Transfer Agent) integrated and must connect directly to an external MTA - typically an SMTP server.
Unix-like system usually do have an MTA, often postfix, that handles all SMTP communication on its own.
Quote:
Originally Posted by shongale
I have an smtp address configured in php.ini. What else do I need to do?
Any help is greatly appreciated!!
|
On Unix/Linux, PHP won't even look at the SMTP parameters in php.ini, but rather at the sendmail_path. That is where you tell PHP which MTA you are using and where its executable is stored. So, yes, you must have a working MTA like postfix.
Actually, I don't understand either why you can't optionally have direct SMTP contact with PHP even on Linux.
Dovecot is completely out of this game, by the way, that's an MDA, a Mail Delivery Agent. It deals with *incoming* mail.
[X] Doc CPU