Rails - shortcut
rails g mailer UserMailer welcome
#app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base
defalt
end
class UserMailer < ApplicationMailer
def welcome
@greeting = "Hi"
mail to: "to@example.org"
end
end
# Create Server on Heroku
heroku create project-name --region=us
# Bind your local project to the new server
heroku git:remote -a project-name