Re: cant mail
| From: | David Wonderly | Date: | Thu, 06 Sep 2007 16:56:06 +0000 |
| Subject: | Re: cant mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261784@lists.php.net to get a copy of this message | ||
Diana Castillo wrote:
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 I had this problem and I found that changing the port to 26 instead of 25 fixed all SMTP problems that I had.Maybe this will help. -Dave