Include message body in notification emails for convenience.
This commit is contained in:
parent
f58b242b0d
commit
78ef65aff7
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
Loading…
Add table
Add a link
Reference in a new issue