Include message body in notification emails for convenience.

This commit is contained in:
Dan Karran 2007-09-16 14:52:50 +00:00
parent f58b242b0d
commit 78ef65aff7
2 changed files with 7 additions and 2 deletions

View file

@ -46,6 +46,7 @@ class Notifier < ActionMailer::Base
@subject = "[OpenStreetMap] #{@from_user.display_name} sent you a new message"
@body['to_user'] = @to_user.display_name
@body['from_user'] = @from_user.display_name
@body['body'] = message.body
@body['subject'] = message.title
@body['url'] = "http://#{SERVER_URL}/message/read/#{message.id}"
end

View file

@ -1,5 +1,9 @@
Hi <%= @to_user %>,
<%= @from_user %> has sent you a message through OpenStreetMap with the subject "<%= @subject %>". You can read the message at:
<%= @from_user %> has sent you a message through OpenStreetMap with the subject "<%= @subject %>":
<%= @url %>
==
<%= @body %>
==
You can also read the message at <%= @url %>