[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2004-2009 Chris Corbyn
   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   * Wraps an IoBuffer to send/receive SMTP commands/responses.
  13   *
  14   * @author Chris Corbyn
  15   */
  16  interface Swift_Transport_SmtpAgent
  17  {
  18      /**
  19       * Get the IoBuffer where read/writes are occurring.
  20       *
  21       * @return Swift_Transport_IoBuffer
  22       */
  23      public function getBuffer();
  24  
  25      /**
  26       * Run a command against the buffer, expecting the given response codes.
  27       *
  28       * If no response codes are given, the response will not be validated.
  29       * If codes are given, an exception will be thrown on an invalid response.
  30       *
  31       * @param string   $command
  32       * @param int[]    $codes
  33       * @param string[] $failures An array of failures by-reference
  34       */
  35      public function executeCommand($command, $codes = [], &$failures = null);
  36  }


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