I am using pear to send SMTP mail with HTML format, everything was fine, but in the last report you make, the report goes wrong formatted and the reason is because the HTML adds an exclamation mark (!) In random parts and when it falls by means of a label or style moves everything. If someone can give me a hand.
function sendEmail($parameters) {
require_once "Mail.php";
print_r($parameters['emailBody']);
$from = "XXXXXXXXXX";
$to = $parameters['emailAddress'];
$subject = $parameters['reportName'];
$host = "XXXXXX";
$port = "XXXX";
$headers = array('From' => $from,
'To' => $to,
'Subject' => $subject,
'Content-type' => 'text/html; charset=utf8');
$smtp = Mail::factory('smtp', array('host' => $host,
'port' => $port,
'auth' => false));
$mail = $smtp->send($to, $headers, $parameters['emailBody']);
}
<td>!</td>