Hey there guys this is sai krishna,
Recently my system got reset. So my xampp got uninstalled. next installed my os and also xampp.
When i am running code here i am getting this error every time…Please help me…
Warning: 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 C:\Xampp\xampp\ajs.php on line 36
This is the code at line no 36
36 : if(mail($to, $subject, $message, $headers)){
37 : header(‘Location: www.google.com’);
38 :
39 : }else{
40 : echo ’';
43 : }