Class: PersonNotify

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/person_notify.rb

Instance Method Summary collapse

Instance Method Details

#setEmail(person, url = nil) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'app/models/person_notify.rb', line 2

def setEmail(person, url=nil)
	# Email header info MUST be added here
	@recipients = person.user.email
	@subject = "[parlement] email verification"
   @from = LOGIN_ENGINE[:email_from].to_s

	# Email body substitutions go here
	@body["name"] = person.name
	@body["url"] = url
   @body["app_name"] = LOGIN_ENGINE[:app_name].to_s
end