function doSendMail( $param ) {
$mail = new Zend_Mail();
$mail->setType(Zend_Mime::MULTIPART_RELATED);
$mail->setReplyTo("PGMS-".$param['user_id'].'-'.$param['touser_id']."-TP".date("H:i:s").'@linkprime.com',"playergrid");
$mail->setBodyHtml($param['email_body']);
$mail->setFrom($param['from'], $param['fromname']);
$mail->addTo($param['to'],$param['toname']);
if($param['calendar']==1)
{
$mail->addCc(array("playergrid<PGMS-c-".$param['event_id']."-".$param['reply_to']."-".$param['event_flag']."-TP".date("H:i:s")."@linkprime.com>"));
}
else
$mail->addCc($param['cc']);
$mail->addBcc($param['bcc']);
$mail->setSubject($param['subject']);
if($mail->send())
return 1;
else
return 0;
}
$mail = new Zend_Mail();
$mail->setType(Zend_Mime::MULTIPART_RELATED);
$mail->setReplyTo("PGMS-".$param['user_id'].'-'.$param['touser_id']."-TP".date("H:i:s").'@linkprime.com',"playergrid");
$mail->setBodyHtml($param['email_body']);
$mail->setFrom($param['from'], $param['fromname']);
$mail->addTo($param['to'],$param['toname']);
if($param['calendar']==1)
{
$mail->addCc(array("playergrid<PGMS-c-".$param['event_id']."-".$param['reply_to']."-".$param['event_flag']."-TP".date("H:i:s")."@linkprime.com>"));
}
else
$mail->addCc($param['cc']);
$mail->addBcc($param['bcc']);
$mail->setSubject($param['subject']);
if($mail->send())
return 1;
else
return 0;
}