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