Reporter.php 785 B

12345678910111213141516171819202122232425262728293031
  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 string $address
  24. * @param int $result from {@link RESULT_PASS, RESULT_FAIL}
  25. */
  26. public function notify(Swift_Mime_SimpleMessage $message, $address, $result);
  27. }