Re: STMP Configuration
| From: | Sven | Date: | Thu, 29 Jan 2004 17:34:46 +0000 |
| Subject: | Re: STMP Configuration | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176236@lists.php.net to get a copy of this message | ||
John Nichel schrieb:
Kaushan wrote:... and if you not want to send from localhost, you can change your smtp-params in your php.ini. hth SVENHi friends, When I'm trying to use the mail() function I got the following error : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() . I'm currently using PHP 2.0.0b1 and "localhost" (Apache) as the web server.PHP 2???Do I have to install a seperate STMP server?If you're trying to send mail thru localhost, localhost needs to have a running MTA (sendmail, qmail, etc), and that MTA needs to be configured to accept mail from localhost (default for all that I know), and relay for mail sent from localhost.