What is a Mail Interceptor?When using ActionMailer in Rails, there is a way to hook into the outbound message after you call the "deliver" method, but before it is actually sent to the delivery agents. You can think of these interceptors a little like before action filters in the controller, or like middleware in Rack. In this post I'll discuss some possible uses for using a mail interceptor, how
![Mail Interceptors and Observers for Logging and Development](https://cdn-ak-scissors.b.st-hatena.com/image/square/bf6b64cbfa593300e52cc7af6a60d52a12b33168/height=288;version=1;width=512/https%3A%2F%2Fleighhalliday-og-image-git-master.leighhalliday.now.sh%2Fog.jpg%3Fauthor%3DLeigh%2520Halliday%26website%3Dleighhalliday.com%26title%3DMail%2520Interceptors%2520and%2520Observers%2520for%2520Logging%2520and%2520Development%26image%3Dhttps%253A%252F%252Fabnormalstudio.s3.amazonaws.com%252Fleigh-social.jpg)