Fixed deprated piece of app.rb smtp code