Skip to content

Instantly share code, notes, and snippets.

@jagmitg
Created April 7, 2012 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagmitg/2324190 to your computer and use it in GitHub Desktop.
Save jagmitg/2324190 to your computer and use it in GitHub Desktop.
class NotificationsMailer < ActionMailer::Base
default :from => "jagmitg@gmail.com"
default :to => "jagmitg@gmail.com"
def new_message(message)
@message = message
mail(:subject => "[YourWebsite.tld] #{message.subject}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment