diff --git a/include/class.email.php b/include/class.email.php index e6b10c3892ece68f9d0410a77116f67cf7de61dd..c38144c4b1281fabf18ffd90b7e4a3937ff4cd90 100644 --- a/include/class.email.php +++ b/include/class.email.php @@ -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.