Re: mail() function HELP
| From: | Shawn McKenzie | Date: | Tue, 04 Mar 2008 22:02:32 +0000 |
| Subject: | Re: mail() function HELP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270977@lists.php.net to get a copy of this message | ||
Stut wrote:
> On 4 Mar 2008, at 21:18, Sofia Jacob (CA) wrote:
>> I'm getting problems with the mail() function.
>>
>> ERROR:
>>
>> Warning: mail() [function.mail]: Failed to connect to mailserver at ""
>> port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use
>> ini_set() in C:\wamp\www\php_sandbox\user_auth_fns.php on line 170
>>
>>
>> I'm using Windows XP prof. and WAMP5 -server
>>
>> Here what I did:
>>
>> 1) I download sendmail.zip from
>> http://glob.com.au/sendmail/
>>
>> 2) I unzip this in a folder on c:\wamp\sendmail
>>
>> 3) I edited PHP.INI file
>>
>> [mail function]
>> ; For Win32 only.
>> SMTP =
>> smtp_port =
>>
>> ; For Win32 only.
>> ;sendmail_from =
>>
>> ; For Unix only. You may supply arguments as well (default: "sendmail
>> -t -i").
>> ;sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"
>
> I don't mean to be rude, but what part of "For Unix only" confused you?
>
> You need to point the "For Win32 only" settings at a mail server on
> Windows. The error message pretty clearly states that it's trying to
> connect to the server specified in those settings.
>
> -Stut
>
Uh, yeah... Then I thought, why not just use the SMTP and smtp_port
settings.
-Shawn