jueves, 13 de diciembre de 2012

jQuery Msg Plugin, HTML Email

jQuery Msg Plugin

HTML Email

...
<?php ob_start(); ?>
<?php echo $html; ?>
<?php $message = ob_get_clean(); ?>
<?php
  $headers = "From: $from\r\n";
  $headers .= "Reply-To: $from\r\n";
  $headers .= "MIME-Version: 1.0\r\n";
  $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

  $mail_sent = mail( $to, $subject, $message, $headers );
?>
...