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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to