0
How to use php mail() in sololearn mobile app ?
it gives error for SMTP mail server
3 Answers
0
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 ..\Playground\ PHP 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 ..\Playground\
0
<?php
$to = "mohit@gmail.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: mohit80@gmail.com" . "\r\n" .
"CC: mohit66@yahoo.com";
mail($to,$subject,$txt,$headers);
?>
0
but it doesn't. it works well in pc. but i want to try it here