06-13-2008, 10:46 AM
|
#2 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Posts: 165
Thanks: 0
|
Quote:
Originally Posted by galleeandfarel
I was trying the send mail to gmail id....from my local server configured with Apache 2.0, PHP 5.2..,, but when the script is executed... the following error is displayed..
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\WEB\MARC\mailer.php on line 3
My php.ini settings:
SMTP localhost
smtp_port 25...
|
You need to actually have a local SMTP server setup to use the send mail in PHP :)
ie, you need an SMTP server setup on localhost:25 according to your settings in your PHP.ini
|
|
|
|