production.rb edited for mail sent operation