Reporter.php 849 B

1234567891011121314151617181920212223242526272829303132
  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. * @author Chris Corbyn
  13. */
  14. interface Swift_Plugins_Reporter
  15. {
  16. /** The recipient was accepted for delivery */
  17. const RESULT_PASS = 0x01;
  18. /** The recipient could not be accepted */
  19. const RESULT_FAIL = 0x10;
  20. /**
  21. * Notifies this ReportNotifier that $address failed or succeeded.
  22. *
  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. }