Save each email before sending rails 4

前端 未结 2 1162
没有蜡笔的小新
没有蜡笔的小新 2021-02-09 18:14

I want to keep track of all triggered emails by the application into a db table, so that i can have a log which emails are sent and to whom.

Kindly suggest me the best

2条回答
  •  心在旅途
    2021-02-09 18:51

    I am doing some research on this and it seems like https://github.com/ankane/ahoy_email is a nice gem to accomplish this. It uses an interceptor internally like the accepted answer. It also integrates with a free event tracking library that has a number of different backends. Might be something to consider if you're starting something like this today.

提交回复
热议问题