开发者

Problem headers mail php

开发者 https://www.devze.com 2023-04-03 16:38 出处:网络
I sending a message with this code below and works: $headers = \'From: Online <\'.$emailT开发者_如何学编程o.\'>\\r\\n\';

I sending a message with this code below and works:

$headers = 'From: Online <'.$emailT开发者_如何学编程o.'>\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


\r and \n must be enclosed in double quotes, in single quoted strings they are taken literally.

0

精彩评论

暂无评论...
验证码 换一张
取 消