How to implement ActionMailer callbacks for rails3?

Is it possible to implement callbacks(like
before_deliver :some_methodes, after_deliver :other_methods) with
ActionMailer in Rails3?

Please somebody help me or give me an idea :slight_smile:
Already I saw
but it I like to do it as callbacks

I wrote a simple gem for this couple of years ago and branch 2.0
supports rails3.

you can check it out here:

or wait for rails4 they will have it builtin.