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);

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.