I sending a message with this code below and works:
$headers = 'From: Online <'.$emailTo.'>\r\n';
$headers .= 'Reply-To: '.$emailTo.'\r\n';
$headers .= 'Return-Path: Online <'.$emailTo.'>\r\n';
$headers .= "Bcc: email@hotmail.com\r\n";
$headers .= "Bcc: email@gmail.com\r\n";
The problem is When I click in Reply on the email appear like this in the field to:
Online \r\nReply-To: email@server.com.au\r\nReturn-Path: Online \r\nBcc: email@hotmail.com
Any idea that can help me?
Cheers M
\rand\nmust be enclosed in double quotes, in single quoted strings they are taken literally.