Thread: mail problem
View Single Post
Old 06-13-2008, 10:46 AM   #2 (permalink)
bluesaga
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

Quote:
Originally Posted by galleeandfarel View Post
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
__________________
Halo 3 Cheats
bluesaga is offline  
Reply With Quote
The Following User Says Thank You to bluesaga For This Useful Post:
galleeandfarel (06-13-2008)