Fixing HTML issue when sending emails

skala
Julio Montoya 12 years ago
parent 6118f92de7
commit fc0cec17a0
  1. 4
      main/inc/lib/main_api.lib.php

@ -6632,7 +6632,9 @@ function api_mail_html($recipient_name, $recipient_email, $subject, $body, $send
$message->attach(Swift_Attachment::fromPath($data_file['path']))->setFilename($data_file['filename']);
}
$message->setContentType('text=html');
$type = $message->getHeaders()->get('Content-Type');
$type->setValue('text/html');
$type->setParameter('charset', 'utf-8');
$app['monolog']->addDebug($message);
$result = $app['mailer']->send($message);

Loading…
Cancel
Save