Skip to content

Instantly share code, notes, and snippets.

@vijendra
Created April 4, 2010 05:48
Show Gist options
  • Save vijendra/355147 to your computer and use it in GitHub Desktop.
Save vijendra/355147 to your computer and use it in GitHub Desktop.
def deliver_welcome!
reset_perishable_token!
Notifier.deliver_welcome(self)
end
#Welcome method in Notifier
def welcome(user)
subject "Welcome to aplication name!"
from "Aplication name<admin@aplication.com>"
recipients user.email
sent_on Time.now
body :application_url => application_root_url(:subdomain => user.company.sub_domain)
end
And I am using @application_url in mail body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment