0

Hi I am trying to send mail from php but when i run the file i have got the error Connect timed out in the file error.log of send mail. this is my php code:

<?php
$message='<html><body><div align="center"><p> Bonjour c est l admin </p></div></body></html>';

if(mail('asmaaachemingui@gmail.com','Localhost subject',$message,'From: assoumasmaassoum@gmail.com')) 
    echo 'Email sent';
else
    echo 'sent failed';
?>

I didn't know how to solve this problem please help me

Özgür Can Karagöz
  • 1,039
  • 1
  • 13
  • 32

0 Answers0