Reply To: Admin notification email doesnt work + UTF8 problem

#10002624

Mike Soja
Participant

I should have said curly braces.

Here is how I rewrote it:


$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
if(!empty($from_email) && filter_var($from_email,FILTER_VALIDATE_EMAIL))//Validating From
$headers .= "From: {$from_name} <{$from_email}>\r\n";

if(!empty($bcc) && filter_var($bcc,FILTER_VALIDATE_EMAIL))//Validating BCC
$headers .= "Bcc: {$bcc}\r\n";

if(!empty($reply_to_email) && filter_var($reply_to_email,FILTER_VALIDATE_EMAIL))//Validating Reply To
$headers .= "Reply-To: Admin <{$reply_to_email}>\r\n";

if($reply_to_email)
$headers .= "Return-Path: {$reply_to_email}\r\n";
else
$headers .= "Return-Path: {$from_email}\r\n";

Share via