Class: MailerGem::MailerGem

Inherits:
Object
  • Object
show all
Defined in:
lib/mailer_gem.rb

Instance Method Summary collapse

Instance Method Details

#post_created(user) ⇒ Object

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!



5
6
7
8
9
10
11
# File 'lib/mailer_gem.rb', line 5

def post_created(user)
 		mail(to: user.email,
 		from: "[email protected]",
 		subject: "thanks!",
 		body: "this is my first mailer"
 		)
end