Sha256: f6f49382463dc0a95c2e5608eddeea9d9e18a029f45139fb12a43f4c101dd725
Contents?: true
Size: 410 Bytes
Versions: 15
Compression:
Stored size: 410 Bytes
Contents
module Mail class Sendmail include Singleton def settings(&block) if block_given? instance_eval(&block) end self end def path(value = nil) value ? @path = value : @path end def Sendmail.deliver!(mail) IO.popen("#{Mail.defaults.sendmail.path} #{mail.destinations.join(" ")}", "w+") do |io| io.puts mail.to_s end end end end
Version data entries
15 entries across 15 versions & 1 rubygems