I am using free hosting of this link and i tried to user php send mail() but it does not work.. here is my code: 
<?php
      if(mail('example@yahoo.com','from mail','your subscription is almost over, you need to renew', 'sample header')){
          echo 'mail sent';
      }else{echo 'not sent';}
?>
I tried also using this in localhost and edited my SMTP in php.ini. Is there any way in sending mail in php that will work also in free hosting? 
 
    
