Status > Emails: Added ability to view, download, resend and/or delete failed emails.

This commit is contained in:
Nate Jones
2015-03-14 06:43:19 +00:00
parent 37bf2da79b
commit 3dd924775a
5 changed files with 373 additions and 18 deletions

View File

@@ -45,7 +45,7 @@
$string = preg_replace ('/<[^>]*>/', ' ', $string);
// ----- remove control characters -----
$string = str_replace("\r", '', $string); // --- replace with empty space
$string = str_replace("\n", ' ', $string); // --- replace with space
$string = str_replace("\t", ' ', $string); // --- replace with space
@@ -60,9 +60,11 @@
ini_set('memory_limit', '128M');
//listen for standard input
$fd = fopen("php://stdin", "r");
$msg = file_get_contents ("php://stdin");
fclose($fd);
if ($msg == '') {
$fd = fopen("php://stdin", "r");
$msg = file_get_contents ("php://stdin");
fclose($fd);
}
//save output to
$fp = fopen(sys_get_temp_dir()."/mailer-app.log", "w");