Class: NoteMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/generators/jinda/templates/app/mailers/note_mailer.rb

Instance Method Summary collapse

Instance Method Details

#gmail(body, to = '', subject = '', from = '') ⇒ Object



6
7
8
9
10
11
# File 'lib/generators/jinda/templates/app/mailers/note_mailer.rb', line 6

def gmail(body, to = '', subject = '', from = '')
  @body   = body
  @title  = subject
  @from   = from
  mail(to: to, subject: subject, from: from)
end