2017-01-02 22:57:19 +08:00
|
|
|
class UserMailer < ApplicationMailer
|
2017-01-14 15:43:34 +08:00
|
|
|
default from: "ucasguoren@heroku.com"
|
2017-01-02 22:57:19 +08:00
|
|
|
|
|
|
|
def send_verify_code mail_address, code
|
|
|
|
@verify_code = code
|
|
|
|
mail(to: mail_address, subject: "验证码")
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|