class MailerGem::MailerGem

Public Instance Methods

post_created(user) click to toggle source

this mailer sends an email to the user if he has created or posted a new recipe in a way it is useful to know authenticated user!

# File lib/mailer_gem.rb, line 5
def post_created(user)
        mail(to: user.email,
        from: "service@mydomain.com",
        subject: "thanks!",
        body: "this is my first mailer"
        )
end