Re: trying to send mail via localhost

From: Date: Mon, 18 Apr 2005 19:45:02 +0000
Subject: Re: trying to send mail via localhost
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213290@lists.php.net to get a copy of this message
That's a relay error. It's actually a good thing. If your server is setup to allow sending email without logging in, that's generally called an open relay. That's where spam comes from. You can configure your mail server to allow relaying from only the local machine. Then you wouldn't have to login before sending mail. But you should only do that if you really know how to configure your server. And if you really know how to configure your server, you probably wouldn't do that. You should look into another PHP mail function, like the PHPMailer class library. This will allow you to authenticate with the mail server before sending email. Then you won't have to create an open relay. On Apr 16, 2005, at 1:28 PM, AndreaD wrote:
When trying to send mail via localhost I get the following error Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Any ideas?/ RH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577


« previous php.general (#213290) next »