[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/ -> EsmtpHandler.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   * An ESMTP handler.
  13   *
  14   * @author Chris Corbyn
  15   */
  16  interface Swift_Transport_EsmtpHandler
  17  {
  18      /**
  19       * Get the name of the ESMTP extension this handles.
  20       *
  21       * @return string
  22       */
  23      public function getHandledKeyword();
  24  
  25      /**
  26       * Set the parameters which the EHLO greeting indicated.
  27       *
  28       * @param string[] $parameters
  29       */
  30      public function setKeywordParams(array $parameters);
  31  
  32      /**
  33       * Runs immediately after a EHLO has been issued.
  34       *
  35       * @param Swift_Transport_SmtpAgent $agent to read/write
  36       */
  37      public function afterEhlo(Swift_Transport_SmtpAgent $agent);
  38  
  39      /**
  40       * Get params which are appended to MAIL FROM:<>.
  41       *
  42       * @return string[]
  43       */
  44      public function getMailParams();
  45  
  46      /**
  47       * Get params which are appended to RCPT TO:<>.
  48       *
  49       * @return string[]
  50       */
  51      public function getRcptParams();
  52  
  53      /**
  54       * Runs when a command is due to be sent.
  55       *
  56       * @param Swift_Transport_SmtpAgent $agent            to read/write
  57       * @param string                    $command          to send
  58       * @param int[]                     $codes            expected in response
  59       * @param string[]                  $failedRecipients to collect failures
  60       * @param bool                      $stop             to be set true  by-reference if the command is now sent
  61       */
  62      public function onCommand(Swift_Transport_SmtpAgent $agent, $command, $codes = [], &$failedRecipients = null, &$stop = false);
  63  
  64      /**
  65       * Returns +1, -1 or 0 according to the rules for usort().
  66       *
  67       * This method is called to ensure extensions can be execute in an appropriate order.
  68       *
  69       * @param string $esmtpKeyword to compare with
  70       *
  71       * @return int
  72       */
  73      public function getPriorityOver($esmtpKeyword);
  74  
  75      /**
  76       * Returns an array of method names which are exposed to the Esmtp class.
  77       *
  78       * @return string[]
  79       */
  80      public function exposeMixinMethods();
  81  
  82      /**
  83       * Tells this handler to clear any buffers and reset its state.
  84       */
  85      public function resetState();
  86  }


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