// send the EMail
$nMax = sizeof($arrRecievers);
for ($nIndex = 0; $nIndex < $nMax; $nIndex++)
{
unset ($arrCurReciever);
$arrCurReciever[] = $arrRecievers[$nIndex];
$mail = new htmlMimeMail();
$mail->setSMTPParams($SMTP_SERVER, $SMTP_PORT, NULL, $SMTP_USE_AUTH, $SMTP_USERID, $SMTP_PWD);
$mail->setText($strContent);
$mail->setFrom($strSender);
$mail->setSubject($strSubject);
$mail->setHeader('X-Mailer', 'CuteFlow Document Workflow System');
$mail->setHeader('Date', date('D, d M y H:i:s O'));
$result = $mail->send($arrCurReciever, 'smtp');
}
|