- mail: documentation ( source)
<?php
$to = 'sainikhil013@outlook.com';
$subject = 'PHP test';
$body = '<h1>Hello Amar';
$headers = 'From: Test Amar'."\r\n";
$headers .= 'Reply-To: sainikhil013@outlook.com'."\r\n";
$headers .= 'Return-Path: from@email.me'."\r\n";
$headers .= 'X-Mailer: PHP5'."\n";
$headers .= 'MIME-Version: 1.0'."\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n";
mail($to, $subject, $body, $headers);
?>