[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2018 Christian Schmidt
   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   * A UTF-8 email address encoder.
  13   *
  14   * Returns the email address verbatimly in UTF-8 as permitted by RFC 6531 and
  15   * RFC 6532. It supports addresses containing non-ASCII characters in both
  16   * local-part and domain (i.e. on both sides of @).
  17   *
  18   * This encoder must be used together with Swift_Transport_Esmtp_SmtpUtf8Handler
  19   * and requires that the outbound SMTP server supports the SMTPUTF8 extension.
  20   *
  21   * If your outbound SMTP server does not support SMTPUTF8, use
  22   * Swift_AddressEncoder_IdnAddressEncoder instead. This allows sending to email
  23   * addresses with non-ASCII characters in the domain, but not in local-part.
  24   *
  25   * @author Christian Schmidt
  26   */
  27  class Swift_AddressEncoder_Utf8AddressEncoder implements Swift_AddressEncoder
  28  {
  29      /**
  30       * Returns the address verbatimly.
  31       */
  32      public function encodeString(string $address): string
  33      {
  34          return $address;
  35      }
  36  }


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