Added ability to use with rails4 and actionmailer (4.1.0.beta)