Created
January 17, 2012 20:40
-
-
Save rlmattax/1628746 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BadUsernameMailer < ActionMailer::Base | |
layout 'mailer' | |
default from: "[email protected]" | |
def username_changed_email(user,old,new) | |
@old = old | |
@new = new | |
mail(:to => user.email, :subject => "uFlavor - Important Account Information - username changed") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the rails guides...
class UserMailer < ActionMailer::Base
def welcome_email(user)
mail(:to => user.email) do |format|
format.html { render :layout => 'my_layout' }
format.text
end
end
end