Move mail logic to mailer
Add ruby version
Fix email params