留言发邮件通知改进
This commit is contained in:
parent
99686ec269
commit
79571e8651
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<%= link_to("hello", @url) %>
|
尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了:
|
||||||
<%=h @user %>
|
<%= @message %>
|
||||||
<%= @message %>
|
点击链接查看最新回复<%= link_to(@url, @url) %>
|
||||||
|
|
Loading…
Reference in New Issue