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

Version Path
mail-1.5.1 lib/mail/network/delivery_methods/sendmail.rb
mail-1.5.0 lib/mail/network/delivery_methods/sendmail.rb
mail-1.4.3 lib/mail/network/delivery_methods/sendmail.rb
mail-1.4.2 lib/mail/network/delivery_methods/sendmail.rb
mail-1.4.1 lib/mail/network/delivery_methods/sendmail.rb
mail-1.4.0 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.5 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.4 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.3 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.2 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.1 lib/mail/network/delivery_methods/sendmail.rb
mail-1.3.0 lib/mail/network/delivery_methods/sendmail.rb
mail-1.2.9 lib/mail/network/delivery_methods/sendmail.rb
mail-1.2.8 lib/mail/network/delivery_methods/sendmail.rb
mail-1.2.6 lib/mail/network/delivery_methods/sendmail.rb