Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Inquiry
- def deliver_notification
- recipient = site.account.email
- InquiryMailer.notification(self, recipient).deliver
- end
- class InquiryMailer
- def notification(inquiry, recipient)
- @inquiry = inquiry
- mail :to => recipient,
- :reply_to => @inquiry.email,
- :subject => "Nova mensagem"
- end
Add Comment
Please, Sign In to add comment