php - mails are not getting sent using xampp but the mail content is stored as text format in mailoutput folder -


this question has answer here:

php script

$from = "xyz@gmail.com"; $to = "xyz@yahoo.com"; $subject = "subject"; $mailtext = "blablabla"; if (mail($to, $subject, $mailtext, "from: $from "))     {       echo "enquiry sent!";     }else {   echo "fail!";     } 

when run code displays enquiry sent means mail sent mail not recieved .

cause can not send email localhost. stored text file simulate sending email .


Comments