Class: Capistrano::Configuration::Mailer

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/ext/mailer.rb

Instance Method Summary collapse

Instance Method Details

#send(sender, recipients, subject, text_body, cc = nil, bcc = nil, attachments = {}) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
# File 'lib/capistrano/ext/mailer.rb', line 45

def send(sender, recipients, subject, text_body, cc = nil, bcc = nil, attachments = {})
  configure
  options = {
    :from => sender,
    :to => recipients,
    :subject => subject,
    :cc => cc,
    :bcc => bcc
  }
  Capistrano::Configuration::ActionMailer.notify(textbody, options, attachments).deliver
end