Send Email Using PHP

Now a days email communication is very important for every person. So in this section we are going to see how to send simple email using php code.

<?php
$to = "john@xxx.com"; //to whom you need to send email
$subject = "Your Subject Here";
$message = "Your Main Content Here!";
$headers = "From: your website name\r\n";
mail($to,$subject,$message,$headers);
?>