Code Monkey home page Code Monkey logo

october-mail-log's Introduction

OctoberCMS Mail Log

This plugin provides a backend log for all the outgoing mail sent by the website. It tracks the addresses to, from, subject, template and timestamp of the email that was sent. This is useful for debugging email sending issues and auditing if mail was sent or not. Only mail that was successfully sent is tracked currently.

Logs by default are only retained for 30 days.

Documentation

Simply install it and it will start running. It has currently been tested with both the log and SMTP drivers. Please open an issue on the GitHub Repository if you run into any other issues.

Configuration

You can change the number of days the log will be retained for in the "Mail Log Settings" area. The default is 30 days.

Commands

php artisan mailog:purge 30 Purge all mail logs after x number of days. Default is 30

Possible Future Features

If you want any of these features, please request it on Github or open a PR

  • Statistics on sending
  • Tracking of failed emails that haven't sent
  • Notify an admin if an email has failed to send (via other channels like Slack)
  • More detailed logging
  • Options for configuring which fields to log

october-mail-log's People

Contributors

humni avatar chvuagniaux avatar splicedweb avatar pvullioud avatar mplodowski avatar

Stargazers

Dheia avatar Jan Hložek avatar  avatar  avatar Luke Towers avatar  avatar  avatar

Watchers

André Philip avatar James Cloos avatar  avatar

october-mail-log's Issues

October v2 compatibility

Can you make it october v2 compatible please.
We cant add the plugin form the marketplace nor from the backend

Permissions

Hi,

great plugin!

I have one issue with plugin permissions. Plugin does not register his own permissions, so I assume you would like to use October logs default.

Currently this is set to:

but the correct value should be system.access_logs.

Add possibility to quickly send an email to custom address

Hello,

Your module is a must have, I install it on each projects I do with October CMS. Thank you for your work.

It would be really great to add a page to quickly send an email to a custom address. My first idea was to develop a module for that, but It would be a very small module, I don't like to have plenty of modules that do pratically nothing.

Instead of that, I would prefer to work on a PR for your module, would you be OK to merge it if I submit you a PR that allow to send an email to a custom address ?

Best regards,

Alex

[Feature] Add the content of the email to the log

First, Thanks for your plugin.
It could be great if it can store the detail of the email.

  • Add extra field "content" in DB
  • Modify the listener
  • Add a detail view in the admin

If I have the time, I'll submit a PR for this

[Feature] Purge the log older than X days

  • Add a setting to define a number days to keep the logs (0 == no purge)
  • Add a command
  • Schedule the command each day

What do you think to add a cog icon in the list to access this setting instead of creating a new entry in the settings menu

Have a great week-end

Install issue

Could you please update the plugin so that we can install it through the backend OC472

image

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.