PHP mail() header


PHP mail() header:


$headers  = "From: your-name  \r\n";
$headers .= "Reply-To: your-name  \r\n";
$headers .= "Return-Path: your-email \r\n";
$headers .= "Bcc: first-mail , second-mail \r\n";
$headers .= "PHP/" . phpversion();

$to = "receivers-email";
$message= "your-message";
$subject = "email-subject";

mail($mailto, $subject, $message, $headers);
Advertisements