Rails tutorial: Send email with rails

In rails we use ActionMailer to send email. For more detail about ActionMailer check this link: http://guides.rubyonrails.org/action_mailer_basics.html Now its time to create mailer. Use following line of command to create mailer. Here I created Blog Mailer which is used to send email to all blog subscriber when new blog published. rails g mailer ArticleMailer Which…

Read more...

Rails tutorial: Simple blog subscription feature in Rails

Before start this you have to setup new rails application with MySQL database. My previous post help you. Check this link: Setting MySQL database to Rails Application First of all generate a model called Subscriber with following command: rails g model Subscriber email:string Which will generate Subscriber model (app/model) directory and a migration file in…

Read more...