Class: Easyemail::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Easyemail::Mailer
- Defined in:
- lib/easyemail.rb
Instance Method Summary collapse
Instance Method Details
#send_email(from, to, subject, content) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/easyemail.rb', line 14 def send_email from, to, subject, content @content = content mail( to: to, from: from, subject: subject ) do | format | format.html end end |