Skip to content
Snippets Groups Projects
Commit 4546dc91 authored by Peter Rotich's avatar Peter Rotich
Browse files

Add wrappers for bulk/auto_reply emails

parent f177a18a
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,6 @@ class Email {
function send($to, $subject, $message, $attachments=null, $options=null) {
$mailer = new Mailer($this);
if($attachments)
$mailer->addAttachments($attachments);
......@@ -150,6 +149,16 @@ class Email {
return $mailer->send($to, $subject, $message, $options);
}
function sendAutoReply($to, $subject, $message, $attachments=null, $options=array()) {
$options+= array('autoreply' => true);
return $this->send($to, $subject, $message, $attachments, $options);
}
function sendAlert($to, $subject, $message, $attachments=null, $options=array()) {
$options+= array('bulk' => true);
return $this->send($to, $subject, $message, $attachments, $options);
}
function update($vars,&$errors) {
$vars=$vars;
$vars['cpasswd']=$this->getPasswd(); //Current decrypted password.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment