I just learning about send many email over localhost (xampp) and I use PHP for programming language, Okay now i've finished to configured all apache, php.ini and mercury server but when I am trying to send an email over this script :
$body="This is a test mail";
if (mail($to,$subject,$body, 'from: email@example.com'))
echo "Mail sent successfully!";
echo"Mail not sent!";
I just got notice that my message was successful to sent. but when i check out my gmail I'm not see new email in here. Okay i now open the error.log in xampp then i notice about something wrong in here :
sendmail: Error during delivery: Connect timed out.
so, what should I do now ?