From 4b0609931ae7959c8e622f0f4f3ec25ffa1436bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cxxq250=E2=80=9D?= <“xxq250@qq.com”> Date: Fri, 14 Oct 2022 11:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E5=8F=91=E9=80=81=E9=82=AE?= =?UTF-8?q?=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/mailers/user_mailer.rb | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 21ed5b0d5..19f565183 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,15 +1,16 @@ -class UserMailer < ApplicationMailer - # 注意:这个地方一定要和你的邮箱服务域名一致 - default from: 'notification@trustie.org' - - # 用户注册验证码 - def register_email(mail, code) - @code = code - mail(to: mail, subject: 'Gitink | 注册验证码') - end - - def update_email(mail, code) - @code = code - mail(to: mail, subject: 'Gitink | 更改邮箱验证码') - end -end +class UserMailer < ApplicationMailer + # 注意:这个地方一定要和你的邮箱服务域名一致 + # default from: 'notification@trustie.org' + default from: 'noreply@gitlink.org.cn' + + # 用户注册验证码 + def register_email(mail, code) + @code = code + mail(to: mail, subject: 'Gitink | 注册验证码') + end + + def update_email(mail, code) + @code = code + mail(to: mail, subject: 'Gitink | 更改邮箱验证码') + end +end