I am using the php mail function, and i have multiple headers. the problem is when i send them, they display the /r/n in the email information. why is this being displayed?
i have placed the headers into an array, seperated by /r/n. when the email is sent, it displays r n in the users inbox. what do i need to do so it doesnt display r n?
$headers=array(
'From: xzy@gmail.com',
'Content-Type:text/html',
'Reply-To: xyz@gmail.com'
);
mail($email_address,$subject,$body,implode("/r/n",$headers));
You’re using
/instead of\. Line breaks are denoted using a backslash, so it should be\r\n.