1. $this->cObj->sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”);
2. t3lib_div:
function sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”) {
// Sends order emails:
$headers=array();
if ($email_from) {$headers[]=’From: ‘.$email_fromName.’ <‘.$email_from.’>’;}
if ($replyTo) {$headers[]=’Reply-To: ‘.$replyTo;}
$recipients=implode(‘,’,t3lib_div::trimExplode(‘,’,$recipients,1));
$emailContent = trim($msg);
if ($emailContent) {
$parts = explode(LF, $emailContent, 2); // First line is subject
$subject=trim($parts[0]);
$plain_message=trim($parts[1]);
if ($recipients) t3lib_div::plainMailEncoded($recipients, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
if ($cc) t3lib_div::plainMailEncoded($cc, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
return true;
}
}