Change localhost:3000 to :5000 on setup_mail.rb initializer.