Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / classes / Swift / Plugins / Reporter.php
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 //@require 'Swift/Mime/Message.php';
12
13 /**
14 * The Reporter plugin sends pass/fail notification to a Reporter.
15 * @package Swift
16 * @subpackage Plugins
17 * @author Chris Corbyn
18 */
19 interface Swift_Plugins_Reporter
20 {
21
22 /** The recipient was accepted for delivery */
23 const RESULT_PASS = 0x01;
24
25 /** The recipient could not be accepted */
26 const RESULT_FAIL = 0x10;
27
28 /**
29 * Notifies this ReportNotifier that $address failed or succeeded.
30 * @param Swift_Mime_Message $message
31 * @param string $address
32 * @param int $result from {@link RESULT_PASS, RESULT_FAIL}
33 */
34 public function notify(Swift_Mime_Message $message, $address, $result);
35
36 }