留言发邮件通知改进
This commit is contained in:
parent
99686ec269
commit
79571e8651
|
@ -38,7 +38,7 @@ class Mailer < ActionMailer::Base
|
|||
@message = journals_for_message.notes
|
||||
@url = url_for(:controller => 'users', :action => 'user_newfeedback', :id => @mail)
|
||||
mail :to => @mail.mail,
|
||||
:subject => "You have a new message"
|
||||
:subject => "#@user leave your a message"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<h1><%= link_to("hello", @url) %></h1>
|
||||
<em><%=h @user %></em>
|
||||
<em>尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了:</em>
|
||||
<div><%= @message %></div>
|
||||
<h1>点击链接查看最新回复<%= link_to(@url, @url) %></h1>
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<%= link_to("hello", @url) %>
|
||||
<%=h @user %>
|
||||
尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了:
|
||||
<%= @message %>
|
||||
点击链接查看最新回复<%= link_to(@url, @url) %>
|
||||
|
|
Loading…
Reference in New Issue