I\'m trying to create a php script that will handle a mailing list for me using a mySQL database, and I have most of it in place. Unfortunately, I can\'t seem to get the he
To have names, as opposed to email addresses shown, use the following:
"John Smith"
Easy.
Regarding the broken line breaks, that is because you are enclosing the text in apostrophes rather than quotation marks:
$headers = array(
'From: "The Sending Name" ' ,
'Reply-To: "The Reply To Name" ' ,
'X-Mailer: PHP/' . phpversion() ,
'MIME-Version: 1.0' ,
'Content-type: text/html; charset=iso-8859-1' ,
'BCC: ' . $emailList
);
$headers = implode( "\r\n" , $headers );