Sending HTML newsletters with plain-text fallback
问题 I am currently using a script which uses file_get_contents to get the contents of a php file, and then sends it inside an email to a list of customers. I would like to alter the script to allow for plain-text fallback to reduce the risk of being marked as spam. This is the script I have at the moment: function sendit($to,$subject,$body) { $headers = "To: <{$to}>\n". "From: Test Newsletter Admin <newsletter@test.co.uk>\n". "Reply-To: Test Newsletter Admin <newsletter@test.co.uk>\n". "MIME