In my Rails 3 project, I want to send some simple notification emails. I don't need to make a template for them or do any logic. I just want to fire them off from various places in the system.
If I were doing this in an arbitrary ruby script I would use pony. However, I'd like to still use the rails mail facilities and configuration, so that I get the same reliability and setup that I have for the rest of the mail in my system.
What's the most simple way to do this? Ideally there would be some method like
ActionMailer.send(:to => 'foo@example.com', :subject =>"the subject", :body =>"this is the body")