示例#1
0
 /**
  * Take an e-mail and configure it.
  * @param $mail object PHPMailer object
  * @return object same PHPMailer object
  * @see li3_phpmailer\Transport::config()
  */
 public function config(&$mail)
 {
     $mail->IsSMTP();
     $mail->SMTPKeepAlive = true;
     if (isset($this->_config['username'])) {
         $mail->SMTPAuth = true;
     }
     return parent::config($mail);
 }
示例#2
0
 /**
  * @see li3_phpmailer\Transport::config()
  */
 public function config(&$mail)
 {
     $mail->IsSendMail();
     return parent::config($mail);
 }