Module: N::Mail

Defined in:
lib/nitro/mail.rb

Overview

A thin wrapper arround net/smtp

Class Method Summary collapse

Class Method Details

.send(from, to, body) ⇒ Object

Send an email



17
18
19
20
21
# File 'lib/nitro/mail.rb', line 17

def self.send(from, to, body)
	Net::SMTP.start(N::Mail.smtp_server, 25) do |smtp|
     smtp.send_message(body, from, to)
	end
end