Module: Vmail::Sender

Extended by:
Sender
Included in:
Sender
Defined in:
lib/vmail/sender.rb

Instance Method Summary collapse

Instance Method Details

#sendObject



8
9
10
11
12
13
# File 'lib/vmail/sender.rb', line 8

def send
  opts = Vmail::SendOptions.new(ARGV)
  config = opts.config.merge 'logile' => STDERR
  imap_client = Vmail::ImapClient.new config
  imap_client.deliver STDIN.read
end