typo3 4.5 lts send html email

t3lib htmlmail deprecated so use t3lib_mail_Message

$mail = t3lib_div::makeInstance(‘t3lib_mail_Message’);
$mail->setReturnPath(‘returnEmail@domain.tld’);
$mail->setFrom(‘fromEmail@domain.tld’);
$mail->setTo(recipentEmail@domain.tld);
$mail->setSubject($emailSubject);
$mail->setBody($plainMailContent);
$mail->addPart($htmlMailContent, ‘text/html’); //html content
$mail->send();
$success = $mail->isSent();