Re: mail() function HELP

From: Date: Tue, 04 Mar 2008 23:25:18 +0000
Subject: Re: mail() function HELP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-270983@lists.php.net to get a copy of this message
Stut wrote: > Please include the list when replying. And please don't top-post, it > makes proper quoting difficult. > > On 4 Mar 2008, at 22:10, Sofia Jacob (CA) wrote: >> Yes, I did that first and I get the error: >> >> Warning: mail() [function.mail]: Failed to connect to mailserver at >> "mail.yahoo.ca" port 465, 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 should told you that before, sorry!!) and then I started to look at >> php web site and I found: >> >> sendmail_path string >> Where the sendmail program can be found, usually /usr/sbin/sendmail or >> /usr/lib/sendmail. configure does an honest attempt of locating this >> one for you and set a default, but if it fails, you can set it here. >> >> Systems not using sendmail should set this directive to the sendmail >> wrapper/replacement their mail system offers, if any. For example, » >> Qmail users can normally set it to /var/qmail/bin/sendmail >> or/var/qmail/bin/qmail-inject. >> >> qmail-inject does not require any option to process mail correctly. >> >> This directive works also under Windows. If set, smtp, smtp_port and >> sendmail_from are ignored and the specified command is executed. >> > My mistake, the comments in the INI file really should be changed to > reflect that. > > Given that your problem is that you haven't uncommented that line as > Shawn said. Remove the ; from the start of that line, restart your we > server and if the manual isn't lying it should work. > > Incidentally, it probably didn't like the Yahoo settings you used > because that port is for SMTP over SSL which PHP doesn't support. > > -Stut > Correct on the yahoo. I would tend to doubt that allow open relaying as well. -Shawn

« previous php.general (#270983) next »