* @package Swift_Plugin * @subpackage VerboseSending * @license GNU Lesser General Public License */ require_once dirname(__FILE__) . "/../../ClassLoader.php"; Swift_ClassLoader::load("Swift_Plugin_VerboseSending_AbstractView"); /** * The Default View for the Verbose Sending Plugin * @package Swift_Plugin * @subpackage VerboseSending * @author Chris Corbyn */ class Swift_Plugin_VerboseSending_DefaultView extends Swift_Plugin_VerboseSending_AbstractView { /** * Number of recipients painted * @var int */ protected $count = 0; /** * Paint the result of a send operation * @param string The email address that was tried * @param boolean True if the message was successfully sent */ public function paintResult($address, $result) { $this->count++; $color = $result ? "#51c45f" : "#d67d71"; $result_text = $result ? "PASS" : "FAIL"; ?>
Recipient (count; ?>):