diff options
Diffstat (limited to 'app/models/password_mailer.rb')
-rw-r--r-- | app/models/password_mailer.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/models/password_mailer.rb b/app/models/password_mailer.rb new file mode 100644 index 0000000..bf2fe82 --- /dev/null +++ b/app/models/password_mailer.rb @@ -0,0 +1,12 @@ +class PasswordMailer < ActionMailer::Base + + def password(person, password, sent_at = Time.now) + @subject = 'New Password' + @body = { :person => person, :password => password } + @recipients = person.email + @from = 'noreply@graz.funkfeuer.at' + @sent_on = sent_at + @headers = {} + end + +end |