README.md in resque_mailer-2.2.0 vs README.md in resque_mailer-2.2.1
- old
+ new
@@ -43,9 +43,18 @@
resque_mailer in a shared environment. You will need to use the new queue
name when starting your workers.
QUEUE=application_specific_mailer rake environment resque:work
+Custom handling of errors that arise when sending a message is possible by
+assigning a lambda to the `error_hander` attribute.
+
+```ruby
+Resque::Mailer.error_handler = lambda { |mailer, message, error|
+ # some custom error handling code here in which you optionally re-raise the error
+}
+```
+
### Using with Resque Scheduler
If [resque-scheduler](https://github.com/bvandenbos/resque-scheduler) is
installed, two extra methods will be available: `deliver_at` and `deliver_in`.
These will enqueue mail for delivery at a specified time in the future.