<?php

////////////////////////////////////////////////////
// PHPMailer - PHP email class
//
// Class for sending email using either
// sendmail, PHP mail(), or SMTP.  Methods are
// ba
sed upon the standard AspEmail(tm) classes.
//
// Copyrigh
t (C) 2001 - 2003  Brent R. Matzelle
//
// License: LGPL, see LICENSE
////////////////////////////////////////////////////
class PHPMailer
{
    /////////////////////////////////////////////////
    // PUBLIC VARIABLES
    /////////////////////////////////////////////////
    
    var $Priority          = 3;
    
    var $CharSet           = "iso-8859-1";
    
    var $Co
ntentType        = "text/plain";
    
    var $Encoding          = "8bit";
    
    var $ErrorInfo         = "";
    
    var $From               = "root@localhost";
    
    var $FromName           = "Root User";
    
    var $Sender            = "";
    
    var $Subject           = "";
    
    var $Body               = "";
    
    var $AltBody           = "";
    
    var $WordWrap          = 0;
    
    var $Mailer            = "mail";
    
    var $Sendmail          = "/usr/sbin/sendmail";
    
    
    var $PluginDir         = "";
    
    var $Version           = "1.71";
    
    var $Co
nfirmReadingTo  = "";
    
    var $Hostname          = "";
    /////////////////////////////////////////////////
    // SMTP VARIABLES
    /////////////////////////////////////////////////
    
    var $Host        = "localhost";
    
    var $Port        = 25;
    
    var $Helo        = "";
    
    var $SMTPAuth     = false;
    
    var $Username     = "";
    
    var $Password     = "";
    
    var $Timeout      = 10;
    
    var $SMTPDebug    = false;
    
    var $SMTPKeepAlive = false;
    
    var $smtp            = NULL;
    var $to              = array();
    var $cc              = array();
    var $bcc             = array();
    var $ReplyTo         = array();
    var $attachment      = array();
    var $CustomHeader    = array();
    var $message_type    = "";
    var $boundary        = array();
    var $language        = array();
    var $error_count     = 0;
    var $LE              = "
";
    
    
    /////////////////////////////////////////////////
    // VARIABLE METHODS
    /////////////////////////////////////////////////
    
    function IsHTML($bool) {
        if($bool == true)
            $this->Co
ntentType = "text/html";
        else
            $this->Co
ntentType = "text/plain";
    }
    
    function IsSMTP() {
        $this->Mailer = "smtp";
    }
    
    function IsMail() {
        $this->Mailer = "mail";
    }
    
    function IsSendmail() {
        $this->Mailer = "sendmail";
    }
    
    function IsQmail() {
        $this->Sendmail = "/var/qmail/bin/sendmail";
        $this->Mailer = "sendmail";
    }
    /////////////////////////////////////////////////
    // RECIPIENT METHODS
    /////////////////////////////////////////////////
    
    function AddAddress($address, $name = "") {
        $cur = count($this->to);
        $this->to[$cur][0] = tri
m($address);
        $this->to[$cur][1] = $name;
    }
    
    function AddCC($address, $name = "") {
        $cur = count($this->cc);
        $this->cc[$cur][0] = tri
m($address);
        $this->cc[$cur][1] = $name;
    }
    /**
     * Adds a "Bcc" address. Note: this function works