The Maillog module for Magento

Contents

  1. Module presentation
    1. Description
    2. Access and configuration
    3. Installation and uninstallation
  2. Email configuration
    1. PHP extension
    2. New variables
  3. Synchronization configuration
    1. With Emarsys
    2. With Dolibarr
    3. With Dolist
  4. Module download and demo
  5. Support

Don't forget that the present documentation is only about the latest version of the module.
Don't forget to read this page entirely.

There is a mistake or a misspelling? It's a scandal! Say it!

Module presentation

Description

This module allows:

The report is sent by email during the night according to the configuration.

Please note that the queue of Magento 1.9.1.0 and more is deactivated when the module is active; and that every email sent with the class Zend_Mail is "captured" by the module.

Access and configuration

Configuration available in System » Configuration » Tools » Transactional emails.
Available in Tools » Transactional emails and in Tools » Customers synchronization, but also in the Transactional emails tab of orders and customers.

Screenshot of part of the configuration
Screenshot of part of the configuration (1/6)
Screenshot of part of the configuration
Screenshot of part of the configuration (2/6)
Screenshot of the email history
Screenshot of the email history (3/6)
Screenshot of the customer email history tab
Screenshot of the customer email history tab (4/6)
Screenshot of the email details
Screenshot of the email details (5/6)
Screenshot of the synchronization history
Screenshot of the synchronization history (6/6)

Installation and uninstallation

Nothing simpler with Magento connect (or by decompressing the module archive in the Magento root).
To get the extension key, don't stop reading :) ...

However, in order for the module to work, and to avoid making an old disgusting rewrite, you must manually change the _sendMail() method of the lib/Zend/Mail/Transport/Sendmail.php file as follows:

    public function _sendMail()
    {
	// https://www.luigifab.info/magento/maillog
	if (Mage::helper('core')->isModuleEnabled('Luigifab_Maillog') && Mage::getStoreConfigFlag('maillog/general/enabled'))
	    return Mage::helper('maillog')->sendMail($this, $this->_mail, $this->_parts);

For uninstallation, having uninstalled the module with Magento connect and removed the change in lib/Zend/Mail/Transport/Sendmail.php, all that remains is to erase the configuration and data:

DELETE FROM core_config_data WHERE path LIKE "maillog/%";
DELETE FROM core_config_data WHERE path LIKE "crontab/jobs/maillog_%";
DELETE FROM core_resource WHERE code = "maillog_setup";
DROP TABLE IF EXISTS luigifab_maillog;
DROP TABLE IF EXISTS luigifab_maillog_sync;
DROP TABLE IF EXISTS luigifab_maillog_bounce;

Email configuration

PHP extension

Pour que la minification HTML fonctionne, il faut installer l'extension PHP-TIDY sur le serveur.

New variables

Quatre nouvelles variables peuvent être ajoutées aux emails :

Synchronization configuration

Synchronization allow to synchronize customer data from Magento to your System.
It is performed in real time on the following events (whether from the backend or from the frontend):

With Emarsys

With Dolibarr

With Dolist

Module download and demo

Demo: configuration / email history / synchronization history

Extension key: https://www.luigifab.info/magento/connect/luigifab/Luigifab_Maillog
Download of the latest version: luigifab-maillog-3.0.0.tgz (md5 1412e454ddc41fe6c20cc97f9665e65d)
GitHub repository: github.com

Tested with Firefox 27/45/57, Chrome 29/63, Opera 49, IE 11, Edge 14 on Magento 1.4.1.0 with PHP 7.1 and MariaDB 10.1.
Tested with Firefox 45 on Magento 1.5.0.1 / 1.6.0.0 / 1.7.0.0 / 1.8.0.0 / 1.9.0.0 / 1.9.3.7 with PHP 7.1 and MariaDB 10.1.

Support

A problem? A question? Is something not working? Is there a bug? Contact me (in French or in English), if I am not on holiday and not far from my mailbox, I will answer you within a few hours.

You will find my email address in the README file, read it!