Sha256: 943eac05cdbf7bbcb855f67753b15ba656e9eae9c52867a957af4ef33142777b
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
class Auth::SendMail < ActionMailer::Base default from: "bhargav.r.raut@gmail.com" def send_email(opts) @options = opts || {} raise "no recipient address" unless @options[:to] raise "no subject" unless @options[:to] mail(to: @options[:to], subject: @options[:subject]) do |format| format.html { render @options[:template] || "send" } end end ## okay so for this, we will pass it to otp job only. ## with some arguments. ## why not use whatever emailer i was using before ? ## okay so the next step is to send this whole notification into a delayed job. end
Version data entries
6 entries across 6 versions & 1 rubygems