// the reciever
$to = 'email@domain.com';
// the subject of the mail
$subject = 'A test-mail';
// the variable
$var = "My name is Bond, James Bond.";
// the message
$msg = "<html>\r\n<body>\r\n";
$msg .= "A famous sentence:<br/>".$var."\r\n";
$msg .= "</body>\r\n</html>\r\n";
// the email headers
$headers = "Content-Type: text/html\r\n";
$headers .= "From: [email]email@other-domain.com[/email]\r\n";
// send the email
if( @mail($to,$subject,$msg,$headers) )
echo 'Email was sent!';