Reporter.php 837B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * The Reporter plugin sends pass/fail notification to a Reporter.
  11. * @package Swift
  12. * @subpackage Plugins
  13. * @author Chris Corbyn
  14. */
  15. interface Swift_Plugins_Reporter
  16. {
  17. /** The recipient was accepted for delivery */
  18. const RESULT_PASS = 0x01;
  19. /** The recipient could not be accepted */
  20. const RESULT_FAIL = 0x10;
  21. /**
  22. * Notifies this ReportNotifier that $address failed or succeeded.
  23. * @param Swift_Mime_Message $message
  24. * @param string $address
  25. * @param int $result from {@link RESULT_PASS, RESULT_FAIL}
  26. */
  27. public function notify(Swift_Mime_Message $message, $address, $result);
  28. }