Re: "Unknown error..." Using The Mail Function
| From: | Julie Meloni | Date: | Mon, 25 Dec 2000 19:43:09 +0000 |
| Subject: | Re: "Unknown error..." Using The Mail Function | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4655@lists.php.net to get a copy of this message | ||
Don't use "localhost" unless you _really_ use that machine to send mail. Instead, use a valid SMTP server name to which your machine can connect. For example, your ISP's outgoing mail server; whatever you use with your email client for that machine.
Luis Abeyta wrote:
I am new to PHP 4 and have just installed it on Window Me along with the Apache web server and am using MS Outlook for my mail softsware. I have configured the [mail function] section of PHP.INI for the two parms as follows: SMTP=localhost and sendmail_from=labeyta@flash.net. When I try to use the mail function I get the error message below. Line 11 reads: mail("labeyta@flash.net", "Subject", "Message Body"); Warning: Unknown error in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 11 TIA Louis Abeyta-- +------------------------------------------------+ | Julie Meloni (julie@i2ii.com) | | Tech. Director, i2i Interactive (www.i2ii.com) | | | | "PHP Essentials" & "PHP Fast & Easy" | | http://www.thickbook.com/ | +------------------------------------------------+