修改邮件样式,增加相应的提示

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2015-03-07 11:30:25 +08:00
parent 5ff43fdea7
commit 151fc561ac
2 changed files with 7 additions and 2 deletions

View File

@ -31,10 +31,11 @@ class Mailer < ActionMailer::Base
# 发送邀请未注册用户加入项目邮件
# 功能: 在加入项目的同时自动注册用户
def send_invite_in_project(email, project, invitor)
@email = email
@subject = "#{invitor.name} #{l(:label_invite_project)} #{project.name} "
password = newpass(6)
@password = newpass(6)
@project_url = url_for(:controller => 'projects', :action => 'show', :id => project.id,
:password => password, :login => email)
:password => @password, :login => email)
mail :to => email, :subject => @subject
end

View File

@ -6,6 +6,10 @@
<span style="float: left; width: 526px">
<p><%= @subject %> </p>
<p> <%= link_to @project_url, @project_url%></p>
<p>点击链接后,将自动为您注册账号</p>
<p>您的账号为:<%= @email %></p>
<p>密码为: <%= @password %></p>
</span>
</li>