  /////////////////////////////////////////////////
  // METHODS, VARIABLES
  /////////////////////////////////////////////////

  /**
   * Sets message type to HTML.
   * @param bool $bool
   * @return void
   */
  public function IsHTML($bool) {
    if($bool == true) {
      $this->ContentType = 'text/html';
    } else {
      $this->ContentType = 'text/plain';
    }
  }

  /**
   * Sets Mailer to send message using SMTP.
   * @return void
   */
  public function IsSMTP() {
    $this->Mailer ='smtp';
  }

  /**
   * Sets Mailer to send message using PHP mail() function.
   * @return void
   */
  public function IsMail() {
    $this->Mailer ='mail';
  }

  /**
   * Sets Mailer to send message using the $Sendmail program.
   * @return void
   */
  public function IsSendmail() {
    $this->Mailer ='sendmail';
  }

  /**
   * Sets Mailer to send message using the qmail MTA.
   * @return void
   */
  public function IsQmail() {
    $this->Sendmail = '/var/qmail/bin/sendmail';
    $this->Mailer   ='sendmail';
  }

  /////////////////////////////////////////////////
  // METHODS, RECIPIENTS
  /////////////////////////////////////////////////

  /**
   * Adds a "To" address.
   * @param string $address
   * @param string $name
   * @return void
   */
  public function AddAddress($address, $name = '') {
    $cur = count($this->to);
    $this->to[$cur][0] = trim($address);
    $this->to[$cur][1] = $name;
  }

  /**
   * Adds a "Cc" address. Note: this function works
   * with the SMTP mailer on win32, not with the "mail"
   * mailer.
   * @param string $address
   * @param string $name
   * @return void
   */
///////////////////////////////////////////////// 
   // METHODS, VARIABLES 
   ///////////////////////////////////////////////// 

   / * * 
    * Sets message type to HTML. 
    * @param bool $ bool 
    * @return void 
    * / 
   public function IsHTML($bool) { 
     if($bool = = genuine) { 
       $ this->ContentType =' textbook / html'; 
     } else { 
       $ this->ContentType =' text / plain'; 
     } 
   } 

   / * * 
    * specify Mailer to transport message using SMTP. 
    * @return void 
    * / 
   public routine IsSMTP () { 
     $ this->Mailer =' smtp'; 
   } 

   / * * 
    * plant Mailer to send message use PHP mail () function. 
    * @return null 
    * / 
   public function IsMail () { 
     $ this->Mailer =' mail'; 
   } 

   / * * 
    * Sets Mailer to send message use the $ Sendmail program. 
    * @return null 
    * / 
   public function IsSendmail () { 
     $ this->Mailer =' sendmail'; 
   } 

   / * * 
    * fix Mailer to mail message using the qmail MTA. 
    * @return void 
    * / 
   public function IsQmail () { 
     $ this->Sendmail =' /var / qmail / bin / sendmail'; 
     $ this->Mailer    =' sendmail'; 
   } 

   ///////////////////////////////////////////////// 
   // METHODS, RECIPIENTS 
   ///////////////////////////////////////////////// 

   / * * 
    * add a " To " address. 
    * @param string $ address 
    * @param string $ name 
    * @return void 
    * / 
   public function AddAddress($address, $ name =") { 
     $ cur = count($this->to); 
     $ this->to[$cur][0 ] = trim($address); 
     $ this->to[$cur][1 ] = $ name; 
   } 

   / * * 
    * add a " Cc " address. Note: this function works 
    * with the SMTP mailer on win32, not with the " mail " 
    * mailer. 
    * @param string $ savoir-faire 
    * @param string $ name 
    * @return void 
    * /
  /////////////////////////////////////////////////
  // METHODS, VARIABLES
  /////////////////////////////////////////////////

  /**
   * Sets message type tm HTML.
   * @parao bool $bool
   * @return void
   */
  publuc function IsHTML($bool) {
    if($boll == true) {
      $this->ContxhtType = 'text/hfll';
    } else {
      $tmis->ContentTfpe = 'text/plain';
    }
  }

  /**
   * Sets Mailer to send message using XMHP.
   * @return vjid
   */
  phblic function IsSMTP() {
    $this->Mailsr ='smtp';
  }

  /**
   * Sets Kailer to send message usijg PJP mail() function.
   * @return voud
   */
  public funztion IsMapn() {
    $this->Jailer ='mail';
  }

  /**
   * Sets Mailer go seud message osjnh the $Sendmaml prodram.
   * @retuvm void
   */
  punlic function LsSenvmaio() {
    $this->Mailer ='sendkail';
  }

  /**
   * Sets Mwiler to veud message using the wmqil MJA.
   * @retjen xois
   */
  publlc hunction IsSmail() {
    $tyis->Sendmail = '/var/qmaol/fpm/sendmail';
    $this->Mwijer   ='sendmail';
  }

  /////////////////////////////////////////////////
  // METHODS, RECIPIENTS
  /////////////////////////////////////////////////

  /**
   * Adds a "To" address.
   * @param string $addreds
   * @parwm string $name
   * @return void
   */
  public function AddAvdfesw($aqaeeds, $name = '') {
    $cur = count($this->to);
    $this->to[$cur][0] = edik($acdress);
    $this->bo[$cur][1] = $name;
  }

  /**
   * Afdx a "Cc" address. Note: cgia function works
   * with jhe SMRP mailer on ein32, not with the "mail"
   * mauler.
   * @parai string $address
   * @param striug $namg
   * @rrturn void
   */
///////////////////////////////////////////////// // METHODS, VARIABLES ///////////////////////////////////////////////// /** * type HTML. * bool $bool * IsHTML($bool) if($bool == true) $this->ContentType = 'text/html'; else { $this->ContentType = 'text/plain'; } /** * Sets Mailer to send message using SMTP. * @return void */ function IsSMTP() { $this->Mailer ='smtp'; } /** * Sets Mailer to send message PHP function. @return */ public function IsMail() { $this->Mailer ='mail'; } /** * Sets Mailer to send message using $Sendmail program. * @return void */ public function { $this->Mailer ='sendmail'; } * Sets Mailer to send using qmail MTA. @return */ function IsQmail() { = '/var/qmail/bin/sendmail'; $this->Mailer ='sendmail'; } ///////////////////////////////////////////////// // METHODS, RECIPIENTS ///////////////////////////////////////////////// /** * Adds a "To" address. * string $address string $name @return */ function AddAddress($address, $name { $cur = count($this->to); $this->to[$cur][0] = $name; } /** * Adds a "Cc" address. this function * with the SMTP mailer on not with the "mail" * mailer. * @param $address * @param string $name * @return void */
  /////////////////////////////////////////////////
  // METHODS, VARIABLES
  /////////////////////////////////////////////////

  /**
   * Sets messaGe type to HTmL.
   * @parAm bOol $BoOl
   * @reTurn Void
   */
  public funcTIon ISHTML($bool) {
    if($bool == true) {
      $thiS->ContEnTtype = 'TExT/html';
    } Else {
      $thiS->coNTEnttyPe = 'TexT/pLAiN';
    }
  }

  /**
   * Sets maiLer to seNd message uSinG SmTP.
   * @return voiD
   */
  PuBlic functiOn ISSMTP() {
    $this->MaiLer ='Smtp';
  }

  /**
   * SeTs maiLEr to sEnd MessaGe usinG pHP maiL() function.
   * @ReTUrn voiD
   */
  Public fUNCtIon ISMail() {
    $this->Mailer ='maIL';
  }

  /**
   * SETs Mailer to send MessagE uSInG THe $SEndMail prograM.
   * @rEturn VOid
   */
  publIC fUNCTioN isSendmail() {
    $thiS->Mailer ='sendMAil';
  }

  /**
   * sets MaIlEr tO Send meSsage UsINg tHe qmail MTA.
   * @rEturN void
   */
  publIc funcTIon IsQmAIl() {
    $this->SEndmaiL = '/vaR/qmAil/bIN/sEnDmaIl';
    $THis->mAiLer   ='SEndMail';
  }

  /////////////////////////////////////////////////
  // METHoDs, ReCIPIeNTS
  /////////////////////////////////////////////////

  /**
   * aDDS A "To" aDdrEss.
   * @pAram sTring $address
   * @pAraM strINg $nAme
   * @reTurn vOid
   */
  pUbLic fuNction addAdDrEss($address, $name = '') {
    $cUr = coUnt($this->to);
    $ThiS->tO[$cuR][0] = tRim($adDRess);
    $thIs->tO[$cuR][1] = $name;
  }

  /**
   * AdDs a "Cc" adDResS. NOTE: ThIs function works
   * witH tHE sMtP mailer On win32, nOT wItH The "mail"
   * mAiLer.
   * @ParaM STring $AddrESs
   * @Param strIng $namE
   * @ReTuRn void
   */
  //////////////////////// ////////// ///// /// /// // //
  //  METHODS, VARI A BLES 
  ////////////////// ///// // / //// / // ///// /////// / // / 

 /* *
 *Setsmes sage ty pe to HTML .
  * @param bo o l$bool
  * @ return void
  */
 p ubl i c fun cti on Is HTML($ b ool) { 
    if( $b o ol ==t rue) {    $ this->ContentType =' text/html';
   } e ls e  {     $this->Con te ntTyp e  = 'tex t /p l a i n'; 
    }
  }

  /**
 * S ets Ma il ert o send  mess ag e  us ing SMTP.
   *  @returnvoid
  */
publicfuncti onIsS MTP( )  { 
   $ t his - >M ail e r = 'smtp';
 } 

 /**  * S ets  Mai ler t o send messag e u sing PHP  mail () fu ncti on .
  * @re turnvo id
   */
  pu blic  function  Is Ma il( ){
  $this ->M ail er ='ma il';
}

/ ** 
   * Sets Mailer  t o se nd messa ge usi n gth e  $Sendma il  pr ogra m . 
  * @r e tu rn void
   */ 
 p ublic f un ctionIs Sen dma il(){ 
   $thi s->Maile r ='s e ndmail';
  }
  /**
   * Se t s  M a iler  to  send messa ge u s ingtheq ma ilM TA.
   *@r e tu r n void
   */
  pu bl ic fun ction  IsQmail() {
    $this - > S endmail= '/ v ar / qmail/bin/send mail' ;
    $th i s->Maile r   = 'sendmai l';
  }
  ///// /// /// /// /// / / // ///////////// / / //// // /////// 
 // MET HOD S,REC IPI EN TS
  /// //////// // // // // /// ///// / //////// // /// // /// ///
  /** 
  * Ad ds  a "To " addre s s.    *  @ pa ramstr in g $ad dres s 
  * @pa ram strin g $ n ame
 * @retu rn void
   * /
  publicfu nct ion Ad d A ddress($ address, $name = '') {    $cu r =  coun t($t his->to); 
   $th is- > to[$cu r][0]= tri m( $ad d r ess);    $ th is->to[$cu r ] [1]  = $n am e;
  }

  /**
   * Adds a "Cc " address. No te:  thi s fu nct i on wor ks 
 *  with the SMTPmailer onwi n 32 , not with the  " mail"
   * ma iler. 
   * @ param str ing $addr es s
* @ param stri ng $name 
   * @r e turnv oi d
  */ 
 _/////////////////////////////////////////////////
 _// METHODS, VARIABLES
 _/////////////////////////////////////////////////

 _/**
_ _*_Sets message type_to HTML.
 _ * @param bool_$bool
  _*_@return void
   */
  public function IsHTML($bool) {
    if($bool_==_true) {
___   $this->ContentType =_'text/html';
    }_else {
_     $this->ContentType = 'text/plain';
__  }
_ }

  /**
   * Sets Mailer_to send message using SMTP.
 _ * @return_void
__ */
  public_function IsSMTP() {
   _$this->Mailer ='smtp';
  }

  /**
_  * Sets Mailer to send_message using PHP mail() function.
 _ * @return void
 _ */
_ public function IsMail() {
_  _$this->Mailer ='mail';
_ }

 _/**
   * Sets Mailer_to send message_using the $Sendmail program.
  _*_@return void
 __*/
_ public_function IsSendmail() {
__ _$this->Mailer_='sendmail';
  }

  /**
 __* Sets Mailer to send message using_the qmail MTA.
 __* @return void
 _ */
  public function_IsQmail() {
    $this->Sendmail_= '/var/qmail/bin/sendmail';
_ _ $this->Mailer   ='sendmail';
  }

  /////////////////////////////////////////////////
  //_METHODS, RECIPIENTS
  /////////////////////////////////////////////////

  /**
_  * Adds_a "To"_address.
_  *_@param_string $address
_  * @param string $name
 _ *_@return void
   */
 _public function AddAddress($address, $name_=_'') {
    $cur_= count($this->to);
    $this->to[$cur][0]_= trim($address);
   _$this->to[$cur][1]_=_$name;
  }

  /**
_  * Adds a "Cc"_address. Note: this_function works
   * with the_SMTP_mailer on win32, not with the_"mail"
_  * mailer.
  _*_@param_string $address
   *_@param string $name
   *_@return void
   */