[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ -> SmtpTransportSMTPUTF8.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2019 Andre Renaut
   6   *
   7   * For the full copyright and license information, please view the LICENSE
   8   * file that was distributed with this source code.
   9   */
  10  
  11  /**
  12   * Sends Messages over SMTP with ESMTP & SMTPUTF8 support.
  13   *
  14   * @author     Chris Corbyn
  15   *
  16   * @method Swift_SmtpTransport_SMTPUTF8     setUsername(string $username) Set the username to authenticate with.
  17   * @method string                          getUsername()                 Get the username to authenticate with.
  18   * @method Swift_SmtpTransport_SMTPUTF8     setPassword(string $password) Set the password to authenticate with.
  19   * @method string                          getPassword()                 Get the password to authenticate with.
  20   * @method Swift_SmtpTransport_SMTPUTF8     setAuthMode(string $mode)     Set the auth mode to use to authenticate.
  21   * @method string                          getAuthMode()                 Get the auth mode to use to authenticate.
  22   */
  23  class Swift_SmtpTransportSMTPUTF8 extends Swift_Transport_EsmtpTransport
  24  {
  25      /**
  26       * @param string $host
  27       * @param int    $port
  28       * @param string $encryption
  29       */
  30      public function __construct($host = 'localhost', $port = 25, $encryption = null)
  31      {
  32          call_user_func_array(
  33              [$this, 'Swift_Transport_EsmtpTransport::__construct'],
  34              Swift_DependencyContainer::getInstance()
  35                  ->createDependenciesFor('transport.smtp_SMTPUTF8')
  36              );
  37  
  38          $this->setHost($host);
  39          $this->setPort($port);
  40          $this->setEncryption($encryption);
  41      }
  42  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1