diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2020-08-11 20:24:30 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2020-08-11 20:24:30 +0000 |
commit | df4cdf1cbae42de7b279f474e2b27fa719a90429 (patch) | |
tree | 9bdf52d80241502ab7f7b1f81240eb83b8df0be4 /Postman/Postman-Email-Log | |
parent | 53b2035def91dc0fe6d8f68e4a34aca2acc79ec8 (diff) | |
download | Post-SMTP-df4cdf1cbae42de7b279f474e2b27fa719a90429.zip |
* Fixed: WordPress 5.5 compatibility
* Fixed: Email log filtering
* Fixed: Pushover notifications
* New: Suggest solution for email delivery errors
Diffstat (limited to 'Postman/Postman-Email-Log')
-rw-r--r-- | Postman/Postman-Email-Log/PostmanEmailLogController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Postman/Postman-Email-Log/PostmanEmailLogController.php b/Postman/Postman-Email-Log/PostmanEmailLogController.php index a6e5179..e94eb43 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogController.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogController.php @@ -97,14 +97,20 @@ class PostmanEmailLogController { $fp = fopen('php://output', 'wb'); $headers = array_keys( PostmanLogFields::get_instance()->get_fields() ); + $headers[] = 'delivery_time'; + fputcsv($fp, $headers); + $date_format = get_option( 'date_format' ); + $time_format = get_option( 'time_format' ); + foreach ( $logs->posts as $log ) { $meta = PostmanLogFields::get_instance()->get($log->ID); $data = []; foreach ( $meta as $header => $line ) { $data[] = $line[0]; } + $data[] = date( "$date_format $time_format", strtotime( $log->post_date ) ); fputcsv($fp, $data); } |