Skip to content

Instantly share code, notes, and snippets.

@keverw
Created July 1, 2012 09:17
Show Gist options
  • Save keverw/3027638 to your computer and use it in GitHub Desktop.
Save keverw/3027638 to your computer and use it in GitHub Desktop.
PHP HTML encoding
<?php
$headers = 'From: ' . $fromname . ' <' . $fromaddress . ">\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=UTF-8' . " \r\n";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment