Reporter.php 893B

1234567891011121314151617181920212223242526272829303132333435
  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. *
  12. * @package Swift
  13. * @subpackage Plugins
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Plugins_Reporter
  17. {
  18. /** The recipient was accepted for delivery */
  19. const RESULT_PASS = 0x01;
  20. /** The recipient could not be accepted */
  21. const RESULT_FAIL = 0x10;
  22. /**
  23. * Notifies this ReportNotifier that $address failed or succeeded.
  24. *
  25. * @param Swift_Mime_Message $message
  26. * @param string $address
  27. * @param integer $result from {@link RESULT_PASS, RESULT_FAIL}
  28. */
  29. public function notify(Swift_Mime_Message $message, $address, $result);
  30. }