Method: Minbox::Cli::Application#send

Defined in:
lib/minbox/cli.rb

#send(host = "localhost", port = 25) ⇒ Object



20
21
22
23
24
25
# File 'lib/minbox/cli.rb', line 20

def send(host = "localhost", port = 25)
  Net::SMTP.start(host, port) do |smtp|
    smtp.debug_output = Minbox.logger
    smtp.send_message(create_mail(options).to_s, options[:from], options[:to])
  end
end