Skip to content

Instantly share code, notes, and snippets.

@NikitaAvvakumov
Last active January 2, 2016 20:19
Show Gist options
  • Select an option

  • Save NikitaAvvakumov/8356093 to your computer and use it in GitHub Desktop.

Select an option

Save NikitaAvvakumov/8356093 to your computer and use it in GitHub Desktop.
class UserMailer < ActionMailer::Base
default from: 'notify@example.com'
def welcome_email(user)
@user = user
@url = 'https://myapp.herokuapp.com'
mail(to: @user.email, subject: 'Welcome to myapp.')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment