Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Assuming the mail system is configured, let’s go ahead and create a mailer model that will contain code pertaining to sending and receiving a class of email. Rails provides a generator to get us started rapidly. Our mailer will send out a notices to any user of our sample application who is late entering their time.
$ rails generate mailer LateNotice
create app/mailers/late_notice.rb
invoke haml
create app/views/late_notice.text.html.haml
invoke rspec
create test/unit/late_notice_spec.rb