guoren/app/mailers/user_mailer.rb

10 lines
204 B
Ruby

class UserMailer < ApplicationMailer
default from: "ucasguoren@heroku.com"
def send_verify_code mail_address, code
@verify_code = code
mail(to: mail_address, subject: "验证码")
end
end