$headers = "Content-type: text/html; charset=utf-8 \r\n";
$headers .= "From: Subject <test@domain.com>\r\n";
mail( "user@mail.ru", "test@domain.com", "Я - письмо!", $headers );
<?php
$to = "somebody@example.com";
$subject = "Тема";
$txt = "Привет Мир!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
mail($to,$subject,$txt,$headers);
?>