i am tryind to send an email using my php program
here is my code
$to = "sunilchhimpa92@gmail.com";
$subject = "This is subject";
$message = "This is simple text message.";
$header = "sunilchhimpa92@yahoo.com \r\n";
$mail_send = mail($to,$subject,$message,$header);
echo $to. $subject.$message.$header;
var_dump($mail_send);
if( $mail_send == true )
{
echo "Message sent successfully...";
}
else
{
echo "Message could not be sent...";
}
here var_dump($mail_send) returning false.
and echo Message could not be sent...
what is the problem with my code
is password of sender mail is required ?
how can i do that ?