留言发邮件通知改进

This commit is contained in:
wanglinchun 2013-12-23 22:36:32 +08:00
parent 99686ec269
commit 79571e8651
3 changed files with 7 additions and 6 deletions

View File

@ -38,7 +38,7 @@ class Mailer < ActionMailer::Base
@message = journals_for_message.notes @message = journals_for_message.notes
@url = url_for(:controller => 'users', :action => 'user_newfeedback', :id => @mail) @url = url_for(:controller => 'users', :action => 'user_newfeedback', :id => @mail)
mail :to => @mail.mail, mail :to => @mail.mail,
:subject => "You have a new message" :subject => "#@user leave your a message"
end end
end end

View File

@ -1,3 +1,4 @@
<h1><%= link_to("hello", @url) %></h1> <em>尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了:</em>
<em><%=h @user %></em>
<div><%= @message %></div> <div><%= @message %></div>
<h1>点击链接查看最新回复<%= link_to(@url, @url) %></h1>

View File

@ -1,3 +1,3 @@
<%= link_to("hello", @url) %> 尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了:
<%=h @user %> <%= @message %>
<%= @message %> 点击链接查看最新回复<%= link_to(@url, @url) %>