質問

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?

役に立ちましたか?

解決

I check this in mail interceptor. Good article here

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top