Sha256: f4d872854e00bf37dea0aa9968fa404e8b2943714fbae9152b4fcaa0b5b9fd25
Contents?: true
Size: 416 Bytes
Versions: 5
Compression:
Stored size: 416 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: mail.rb 248 2005-01-31 13:38:34Z gmosx $ require 'net/smtp' module N # A thin wrapper arround net/smtp module Mail mattr_accessor :smtp_server, 'localhost' # Send an email def self.send(from, to, body) Net::SMTP.start(N::Mail.smtp_server, 25) do |smtp| smtp.send_message(body, from, to) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.10.0 | lib/nitro/mail.rb |
nitro-0.11.0 | lib/nitro/mail.rb |
nitro-0.12.0 | lib/nitro/mail.rb |
nitro-0.9.3 | lib/nitro/mail.rb |
nitro-0.9.5 | lib/nitro/mail.rb |