TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Plugins
Reporters
HtmlReporter.php
Go to the documentation of this file.
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
16
class
Swift_Plugins_Reporters_HtmlReporter
implements
Swift_Plugins_Reporter
17
{
25
public
function
notify
(
Swift_Mime_Message
$message, $address, $result)
26
{
27
if
(self::RESULT_PASS == $result) {
28
echo
'<div style="color: #fff; background: #006600; padding: 2px; margin: 2px;">'
.PHP_EOL;
29
echo
'PASS '
.$address.PHP_EOL;
30
echo
'</div>'
.PHP_EOL;
31
flush();
32
}
else
{
33
echo
'<div style="color: #fff; background: #880000; padding: 2px; margin: 2px;">'
.PHP_EOL;
34
echo
'FAIL '
.$address.PHP_EOL;
35
echo
'</div>'
.PHP_EOL;
36
flush();
37
}
38
}
39
}
Generated on Wed Nov 11 2015 01:51:57 for TYPO3 by
1.8.3