diff --git a/app/lib/email_log_interceptor.rb b/app/lib/email_log_interceptor.rb new file mode 100644 index 000000000..bfbfd23d0 --- /dev/null +++ b/app/lib/email_log_interceptor.rb @@ -0,0 +1,11 @@ +# lib/email_log_interceptor.rb + +class EmailLogInterceptor + MailDeliveryFailure.create!( + email_address: email_address, + mailer_class: mailer_class, + mailer_action_method: mailer_action_method, + error_message: error.message + ) + end + \ No newline at end of file