Sha256: e74564253c56580723e6af652fd119ebfcd22ffa20c29af5c62d34d648d4e668

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

# code:
# * George Moschovitis  <gm@navel.gr>
#
# (c) 2004 Navel, all rights reserved.
# $Id: mail.rb 101 2004-10-22 12:35:39Z gmosx $

require "net/smtp"

module N

# = Mail
#
# A thin wrapper arround net/smtp
#
module Mail
	
	# Send an email
	#
	#
	def self.send(from, to, body)
		Net::SMTP.start($smtp_server, 25) { |smtp|
      smtp.send_message(body, from, to)
		}
	end
	
end

end # module

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.2.0 lib/n/utils/mail.rb
nitro-0.3.0 lib/n/utils/mail.rb