Module: N::Mail

Defined in:
lib/n/utils/mail.rb

Class Method Summary collapse

Class Method Details

.send(from, to, body) ⇒ Object

Send an email



20
21
22
23
24
# File 'lib/n/utils/mail.rb', line 20

def self.send(from, to, body)
	Net::SMTP.start($smtp_server, 25) { |smtp|
     smtp.send_message(body, from, to)
	}
end