更换发送邮箱
This commit is contained in:
parent
c2742f0ae7
commit
4b0609931a
|
@ -1,15 +1,16 @@
|
||||||
class UserMailer < ApplicationMailer
|
class UserMailer < ApplicationMailer
|
||||||
# 注意:这个地方一定要和你的邮箱服务域名一致
|
# 注意:这个地方一定要和你的邮箱服务域名一致
|
||||||
default from: 'notification@trustie.org'
|
# default from: 'notification@trustie.org'
|
||||||
|
default from: 'noreply@gitlink.org.cn'
|
||||||
# 用户注册验证码
|
|
||||||
def register_email(mail, code)
|
# 用户注册验证码
|
||||||
@code = code
|
def register_email(mail, code)
|
||||||
mail(to: mail, subject: 'Gitink | 注册验证码')
|
@code = code
|
||||||
end
|
mail(to: mail, subject: 'Gitink | 注册验证码')
|
||||||
|
end
|
||||||
def update_email(mail, code)
|
|
||||||
@code = code
|
def update_email(mail, code)
|
||||||
mail(to: mail, subject: 'Gitink | 更改邮箱验证码')
|
@code = code
|
||||||
end
|
mail(to: mail, subject: 'Gitink | 更改邮箱验证码')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue