Class: Auth::SendMail
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Auth::SendMail
- Defined in:
- app/mailers/auth/send_mail.rb
Instance Method Summary collapse
Instance Method Details
#send_email(opts) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/mailers/auth/send_mail.rb', line 3 def send_email(opts) = opts || {} raise "no recipient address" unless [:to] raise "no subject" unless [:to] mail(to: [:to], subject: [:subject]) do |format| format.html { render [:template] || "send" } end end |