1
votes

I need to disable/enable ActionMailer upon user request.

For example, if user selects disable emails, no email will be sent till he turns it on.

How to do this, without adding any conditions to Model callbacks?

1

1 Answers

1
votes

I check this in mail interceptor. Good article here

The inelegant thing here is to get users via their email from the message.