👉

Did you like how we did? Rate your experience!

Rated 4.5 out of 5 stars by our customers 561

Award-winning PDF software

review-platform review-platform review-platform review-platform review-platform

Video instructions and help with filling out and completing Dd 1750

Instructions and Help about Dd 1750

True" hello! So, there are three types of emails: personal ones, transactional ones, and marketing emails. In this video, we are going to go through sending emails inside a Ruby on Rails application. For this, we are going to use Action Mailer. Action Mailer is basically the Ruby on Rails strategy for sending emails from a Rails application. Now, we already have a template default for our Montreal's application running. We have users and posts, and we're going to create a mailer where all the users are notified whenever a new post is created. Let's go back to the documentation for Action Mailer. When I first learned Action Mailer, I felt blocked and it was quite hard. Hopefully, it will be much easier for you now. First, we are going to create a mailer and name it Post Mailer. So, let's say: "rails generate mailer post mailer". Inside the Post Mailer, we are going to create an action named "post created". "Post created" is going to be the name of the email that we are going to send. So, we've created a few files. First of all, we have created a file in the folder named "mailers". Inside our application, we have a few folders: controllers, models, views, and mailers. Often, we don't even look at the mailers folder. But we have it. Inside the Post Mailer, we were given a default action named "post created". But we are, of course, going to change it. In this action, we have "mail_to" and "to" an example email. Also, in our views, we were given this new folder called "post mailer". In this post mailer folder, we have both "text" and "html" files. So, here we are actually going to have the text that is going to be delivered to our email recipients. You see, we have this...