Send Email via PHP - Urdu / Hindi

  • 10 years ago
$from = "from@example.com";
$to = "to@example.com";
$sub = "This is my subject.";
$msg = "The simplest way to send an email with PHP is to send a text email.";


$headers = 'From: '.$from."\r\n".

'Reply-To: '.$from."\r\n" .

'X-Mailer: PHP/' . phpversion();

mail($to, $sub, $msg, $headers);


if(mail){

echo "Email Sent to ".$to;
}
else {
Echo "Error";
}

Recommended