Example #1
0
 /**
  * Send an email notification for a reply
  */
 private function send($customer, $their_comment, $the_reply)
 {
     $temp = new Template();
     $temp->setTemplateDirRel('mail');
     $temp->setTemplate('comment_reply_notify.tpl.php');
     $temp->the_reply = $the_reply;
     $temp->their_comment = $their_comment;
     $temp->alias = $customer->customers_alias;
     $emailer = new Mailer();
     $emailer->AddAddress($customer->customers_email_address, $temp->alias);
     $emailer->Subject = "Reply to SparkFun Comment #" . (string) $their_comment->id();
     $emailer->MsgHTML($temp->render());
     return $emailer->Send();
 }