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.(create_mail().to_s, [:from], [:to]) end end |