Class: FeedbackMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- FeedbackMailer
- Defined in:
- app/mailers/feedback_mailer.rb
Instance Method Summary collapse
Instance Method Details
#submit_feedback(feedback) ⇒ Object
4 5 6 7 8 |
# File 'app/mailers/feedback_mailer.rb', line 4 def submit_feedback(feedback) @feedback = feedback #attachments["rails.png"] = File.read("#{Rails.root}/public/images/rails.png") mail(:to => "[email protected]", :subject => %(CAGYM.com user feedback: #{feedback.subject})) end |