<?php
/************************************************************************/
/* ATutor */
/************************************************************************/
/* Copyright (c) 2002-2004 by Greg Gay, Joel Kronenberg, Heidi Hazelton */
/* http://atutor.ca */
/* */
/* This program is free software. You can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation. */
/************************************************************************/
// $Id: acollabmailer.class.php 278 2004-06-11 17:34:00Z joel $
if (!defined('AC_INCLUDE_PATH')) { exit; }
require('class.phpmailer.php');
class ACollabMailer extends PHPMailer {
// Set default variables for all new objects
// constructor
function ACollabMailer() {
if (MAIL_USE_SMTP) {
$this->IsSMTP(); // set mailer to use SMTP
$this->Host = ini_get('SMTP'); // specify main and backup server
} else {
$this->IsSendmail(); // use sendmail
$this->Sendmail = ini_get('sendmail_path');
}
$this->SMTPAuth = false; // turn on SMTP authentication
$this->IsHTML(false);
}
function Send() {
// attach the ATutor footer to the body first:
$this->Body .= "\n\n".'----------------------------------------------'."\n";
$this->Body .= _AC('sent_via_acollab');
$this->Body .= "\n"._AC('acollab_home').': http://atutor.ca/acollab';
return parent::Send();
}
}
?>