Hi guys,
I have a PHP form and when a user submits the form it sends the data to my email address and also sends a confirmation email to the user but the problem i have is the confirmation email to the user shows its from my email address. How can i change it so it says "noreply" or "automated response email"?
Heres the code that it think is causing the problem
/* MAIL TO USER */
$from = "$admin_email<$admin_email>";
$headers = "Return-Path: <$admin_email>\n";
$headers .= "X-Sender: <$admin_email>\n";
$headers .= "From: $from\n" .
$headers .= "X-Mailer
HP\n";
$headers .= "X-auth-smtp-user: $admin_email\n";
$headers .= "MIME-Version: 1.0\n";
$headers.="Content-Transfer-Encoding: 8bit\n";
$headers .="Content-Type: text/html; charset=UTF-8\n";
I have a PHP form and when a user submits the form it sends the data to my email address and also sends a confirmation email to the user but the problem i have is the confirmation email to the user shows its from my email address. How can i change it so it says "noreply" or "automated response email"?
Heres the code that it think is causing the problem
/* MAIL TO USER */
$from = "$admin_email<$admin_email>";
$headers = "Return-Path: <$admin_email>\n";
$headers .= "X-Sender: <$admin_email>\n";
$headers .= "From: $from\n" .
$headers .= "X-Mailer
$headers .= "X-auth-smtp-user: $admin_email\n";
$headers .= "MIME-Version: 1.0\n";
$headers.="Content-Transfer-Encoding: 8bit\n";
$headers .="Content-Type: text/html; charset=UTF-8\n";