RE: [PHP] cant mail

From: Date: Thu, 06 Sep 2007 18:00:09 +0000
Subject: RE: [PHP] cant mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261785@lists.php.net to get a copy of this message
Hi, Try to set from the program using ini_set()function and or check your mail server is correct or what. In most of the case I have used as follows Ini_set("SMPT","mail.domainname.com"); And port If mail server doesn't exist then used as Ini_set("SMPT","domainname.com"); And port And believe me it worked well... You just confirm your mailing server and your problem solves Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.sanchanworld.com - Submit your website URL http://webhosting.sanchanworld.com - Choose your best web hosting plan -----Original Message----- From: Diana Castillo [mailto:dcastillo@tsanalytics.com] Sent: Thursday, September 06, 2007 4:12 PM To: php-general@lists.php.net Subject: [PHP] cant mail when I try to send mail using this code: mail("dcastillo@tsanalytics.com","TEST MAIL","TESTING MAIL"); I get this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.tsanalytics.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Inetpub\wwwroot\intranet\test.php on line 4 my settings in php.ini are SMTP = "smtp.tsanalytics.com" smtp_port = 25 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#261785) next »