0

I was trying to send mails concretely using php(5.6.21), xampp(3.2.2) 'mail()'. I am getting the below error. I tired in all possible ways and could find out the root cause.

PHP Warning:  mail(): Failed to connect to mailserver at "smtp.tecnotree.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\\xampp\\htdocs\\test\\1.php on line 11, referer:abc.com/test/1.php

Please help me on the same.

Flexicoder
  • 8,251
  • 4
  • 42
  • 56
user93068
  • 31
  • 4
  • 2
    Possible duplicate of [Failed to connect to mailserver at "localhost" port 25](http://stackoverflow.com/questions/4532486/failed-to-connect-to-mailserver-at-localhost-port-25) – donald123 Dec 05 '16 at 11:07
  • use phpmailer, it will make more easier to send mail from localhost – Prateik Darji Dec 05 '16 at 11:10
  • ours is not local system problem, we are doing this in a windows server and we have set up the STMP also. We are getting this error only with the attached Apache, php versions. When we tried with other xampp versions it worked fine. Is there anything we are missing to configure in xampp 3.2.2 version for sending mails – user93068 Dec 05 '16 at 11:14

0 Answers0