Giter VIP home page Giter VIP logo

wp-mail-logging's Introduction

✉️ wp-mail-logging Build Status codecov Join the chat at https://gitter.im/kgjerstad/wp-mail-logging

Welcome

wp-mail-logging is a WordPress plugin that logs each mail sent by WordPress.

Installation

Install the plugin from the official Wordpress Plugin Repository.

Bugs

If you find an issue, let us know in the Tracker!

Contributions

Anyone is welcome to contribute to wp-mail-logging. Please create an pull request for each change you want to contribute.

There are various ways you can contribute:

As Developer

  1. You can clone the git repository: 'https://github.com/kgjerstad/wp-mail-logging.git'
  2. Or download it directly as a ZIP file: 'https://github.com/kgjerstad/wp-mail-logging/archive/master.zip'

This will download the latest developer copy of wp-mail-logging.

Please read Contributing if you plan to contribute.

As Assistant

  1. Raise an Issue
  2. Translate wp-mail-logging into different languages
  3. Provide feedback and suggestions on enhancements

wp-mail-logging's People

Contributors

ajoah avatar capuderg avatar codemonkey-jack avatar costasovo avatar donmhico avatar flakas avatar g000m avatar geoffreybr avatar idealien avatar kgjerstad avatar kprovance avatar mqudsi avatar multiplehats avatar neosinner avatar no3x avatar pavel-mailpoet avatar spreeuw avatar tripflex avatar wvega avatar wxa avatar xxxycl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-mail-logging's Issues

Graphs

Add some graphs about the mail traffic.

Security issues

Hello, i'm Julio Potier, a french Web Security Consultant.

I found some vulnerabilities in your plugin and i don't want to disclose this publicly.

Can you contact me for more informations at julio @boiteaweb.fr

Thanks!

Increase wp_mail Filter Priority

theromb reported:

WP Mail Logging wp_mail filter is setup with default 10 priority. Please use some big priority, like 10000 because if plugin with priority lover than 10 updates email, this data will be lost.

There is already an incompatibility with the plugin CC Admin Emails.

'Can See Submission Data' not working(?)

Hi,

First of all, thank you very much for the great plugin. I would like to use the 'Can See Submission Data' function but it is not working. I managed to see 'WP Mail Logging' when login as admin. I have created a custom role ('Manager') and set the minimum role to 'Create User' but it did not show when login as manager. It is same even if I set to 'Manage Options'. Can you please kindly check?

My Wordpress version is 4.1 and using WP-Mail Logging version 1.4. Thank you very much!

national characters are logged as ?

All national characters are logged as ? (question marks).

Maybe utf8_unicode_ci charset will fix this. Needs further investigation.

ALTER TABLE tbln CONVERT TO CHARACTER SET utf8_unicode_ci;

Plugin Conflict With Wholesale Pricing Plugin

Ran into an issue where the plugin I use for different pricing for resellers stopped working (Plug in https://www.varktech.com/ using the Pro edition). Did some troubleshooting and found the conflict was with the WP Mail Log plugin. As soon as I disabled it, everything started working again.
This must have been caused by the latest update as they have been working together fine up until recently.

Please remove Settings admin menu item

Please add the option to disable the admin menu settings link/icon. I hate it when plugins add menu items to admin bar and do not have the option to disable it. Thanks

Malware on redux framework

Hi,

our hosting provider has reported the presence of malware to the following path:

wp-content/plugins/wp-mail-logging/inc/redux/redux-framework/ReduxCore/inc/fields/editor/field_editor.min.js

SecuriteInfo.com.Trojan.Script.655510.8251.9711.30398.UNOFFICIAL FOUND

Do you think is a false warning o there some problem on redux framework?

Regards

Export to .csv or .xls

It would be nice to have be able to download the log in CSV or XLS.

I'm thinking just the data for: Time / Receiver / Subject

Thanks!

Searching through the log (enchancement)

Usually, one looks at the log because someone hasn't received a message. Being able to search for an address would be very useful when there are many pages in the log.

(This could be done via a .csv export too)

Fatal error: Uncaught phpmailerException: Invalid address: (setFrom)

Error when trying to resend one or more emails:

Fatal error: Uncaught phpmailerException: Invalid address: (setFrom) [email protected],\nReply-To: [email protected],\nBcc: [email protected],\nContent-type: text/html; charset=UTF-8 in /home/wwwxxxx/public_html/wp-includes/class-phpmailer.php:1023 Stack trace: #0 /home/wwwxxxx/public_html/wp-content/plugins/smtp-mailer/main.php(612): PHPMailer->setFrom('info@mydoma...', 'XXXX XXX X...', false) #1 /home/wwwxxxx/public_html/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php(425): wp_mail('my.email@i...', 'Contatto Ricevu...', '<html>\r\n\t<head>...', Array, Array) #2 /home/wwwxxxx/public_html/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php(412): No3x\WPML\WPML_Email_Log_List->resend_email(Object(No3x\WPML\Model\WPML_Mail)) #3 /home/wwwxxxx/public_html/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php(154): No3x\WPML\WPML_Email_Log_List->process_bulk_action() #4 /home/wwwxxxx/public_html/wp-content in /home/wwwxxxx/public_html/wp-includes/class-phpmailer.php on line 1023

I'm using the following plugins:

  • SMTP Mailer
  • Gravity Forms
  • WPML

On main settings I use an email, but on gravity forms I use another one as sender, this other address is SMTP authenticated via SMTP Mailer.

if I use this filter:

add_filter( 'wp_mail_from', function() {
return '[email protected]';
} );

with the same address I use in gravity as sender, error is no more there.

Plugin Compatability

Does the plugin compatible with wordpress 4.7?

In the plugin page it says "Compatible up to: 4.6.1"
this results a conflict for all who uses this plugin as in their site they see:
Compatibility with WordPress 4.7: Unknown
Which tells them not to update because it's not compatable

Allow export mail to PDF

The column Messagecontains button Viewwhich display the email.
Add next to it button PDFwhich will view the email in PDF file.

How does the email saved in the database?

I want to import the emails sent from WordPress to my own database.
Where does the data from this plugin saved?
I want to write an SQL which shows the emails.. then I can easily import the data.

Missing database host column

Hello,

I just noticed this plugin stopped working for me in November and it seems to be due to not having a 'host' column in the ..._wpml_mails database table. Error:

WordPress database error Unknown column 'host' in 'field list' for query INSERT INTO...

The last working log in my database appears to be from version 1.6.2 of the plugin.

Removing Bloat, Specifically Redux?

Any specific reason for using Redux framework in the plugin? It adds a lot of bloat and while debugging my sites I find numerous filters, actions, updates,etc, made by redux when really it shouldn't be doing anything on those pages ... basically just wondering, why add bloated framework when there are only a few simple settings?

Attachment Column

Currently the attachment column just displays the number of attachments the mail has. It could be added meta information about the attachments like: file name, file type (plus icon) ...

Receiver field blank

IIRC you changed the db from to to receiver but looks like there are issues with an older version of the plugin and the master release now. As you can see in the image all fields are blank, and after further investigation it looks like that column is missing from the database.

The only way I am able to fix this is to remove the entire table, deactivate plugin, and then re-activate plugin.

Probably easy fix with MYSQL to just add a statement to make sure that column exists and if not to add it, that way when new mails are logged they are saved with that data, otherwise i'm sure others will have this problem.

Had this issue on 3 sites so I know it's not server specific

Slider Granularity

The granularity of the time slider is currently 10. A more common value would be 7.
(The typed in number of days is ignored - the value of the slider is used instead.)

"Plugin could not be activated because it triggered a fatal error."

When attempting to activate the plugin:

Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected '[' in /var/www/web/pph/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php on line 88
Fatal error: syntax error, unexpected '[' in /var/www/web/pph/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php on line 88

wp-mail-logging 1.7.0
WordPress 4.7.2
PHP 5.3.1

Remove entire mail table from database

So I had an issue (assuming its from having an old install) where i was getting errors about the host column not existing in the database table ... tried removing the entire plugin, reset all settings, and couldn't find anything in the settings, to actually remove the database table.

Would be good to have a setting or action button in settings to remove and re-setup the db table for those who may not know how to do it otherwise (plus just good to have)

Wrong Content-Type When Resending Emails

When I use the "resend" feature, the message body arrives as HTML code,
infact in the message head I see:

Content-Type: text/plain;

While original emails have:

Content-Type: text/html;

EDIT: I looked in DB, and in wpml_mails table "headers" are correct. So Don't understand how it becomes plain text when sending.

Open Message in Alert

The message should be loaded by click. A js alert should pop up and load the content by ajax call.

Side effect on French quotation marks not set when plugin is enabled

When Wordpress is set in French, the "English quotations marks" are replaced by the « French quotation marks ». Here is a screenshot with the quotation marks highlighted in yellow:

screenshot-plugin-disabled

When I enable the wp-mail-logging plugin, it does not work:

screenshot-plugin-enabled

Do you have an idea why? And how can I solve it?
Thanks,

Illegal String Offset Errors

Started receiving the following errors on a website recently (may have happened with the latest WP update; client doesn't check site often):

Warning: Illegal string offset 'to' in /.../wp-content/plugins/wp-mail-logging/WPML_Plugin.php on line 182
Warning: Illegal string offset 'subject' in /.../wp-content/plugins/wp-mail-logging/WPML_Plugin.php on line 183
Warning: Illegal string offset 'headers' in /.../wp-content/plugins/wp-mail-logging/WPML_Plugin.php on line 185
Warning: Illegal string offset 'attachments' in /.../wp-content/plugins/wp-mail-logging/WPML_Plugin.php on line 186

Log Rotation

We need a log rotation that fullfills

  • "clear log entries older than X days/weeks/months"
  • "keep most recent X entries"

No support for SuperAdmin user?

Found that while it installed I couldn't see the icon in the WP dashboard - turns out the plugin isn't supporting super admin users as far as I can tell.

Mandrill support

Austin Passy reported: message and time sent data isn't saved when Mandrill App is installed and running.
See photo:

Changing priority of log_email didn't do the trick:
add_filter( 'wp_mail', array( &$this, 'log_email' ), 99 );

Need to install the whole environment..

WordPress time format

Stephen S reported:

Hi, it seems that the plugin is not respecting the WordPress settings for timezone, but rather taking whatever the server timezone is. For example, my server is using Pacific Time but I have set my WordPress settings to use New York (Eastern time zone). When I look in the log, it is showing everything sent 3 hours earlier than it should. Any way to fix this? I can't change the server time btw, it is a shared host. thanks!


We should print the date value like this instead:
date_i18n( get_option( 'date_format' ), strtotime($mailunixtimestamp) );
So this way the preferred date format from the WordPress settings would be used. (Or add a setting to the plugin)

New Icon

I would appreciate a new icon for the plugin repository. It would be nice if somebody could contribute an icon. I'm not that happy with the current one:
current Icon

WooCommerce Cart Stock Reducer

Tried to use cart stock reducer for variant articles.
Is it correct that this reducer is not working for these kind of products.

Kins regards,
Ton de Gier

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.