<?php
php
//define the receiver of the email
$to = '[email protected]';
//define the subject of the email
$subject = 'LFS email';
//define the message to be sent. Each line should be separated with \n
$message = "Blah blah message here.";
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]\r\nReply-To: [email protected]";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed"
echo $mail_sent ? "Mail sent" : "Mail failed";
?>