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