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