Sha256: cb9538274de126de22c0e94ad681218ec1171b1666e04600c39b984ed81d7227

Contents?: true

Size: 1.2 KB

Versions: 13

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

module Mail
  # A delivery method implementation which sends via exim.
  #
  # To use this, first find out where the exim binary is on your computer,
  # if you are on a mac or unix box, it is usually in /usr/sbin/exim, this will
  # be your exim location.
  #
  #   Mail.defaults do
  #     delivery_method :exim
  #   end
  #
  # Or if your exim binary is not at '/usr/sbin/exim'
  #
  #   Mail.defaults do
  #     delivery_method :exim, :location => '/absolute/path/to/your/exim'
  #   end
  #
  # Then just deliver the email as normal:
  #
  #   Mail.deliver do
  #     to 'mikel@test.lindsaar.net'
  #     from 'ada@test.lindsaar.net'
  #     subject 'testing exim'
  #     body 'testing exim'
  #   end
  #
  # Or by calling deliver on a Mail message
  #
  #   mail = Mail.new do
  #     to 'mikel@test.lindsaar.net'
  #     from 'ada@test.lindsaar.net'
  #     subject 'testing exim'
  #     body 'testing exim'
  #   end
  #
  #   mail.deliver!
  class Exim < Sendmail
    DEFAULTS = {
      :location   => '/usr/sbin/exim',
      :arguments  => %w[ -i -t ]
    }

    # Uses -t option to extract recipients from the message.
    def destinations_for(envelope)
      nil
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/exim.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/exim.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/exim.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/exim.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/exim.rb
mail-2.8.1 lib/mail/network/delivery_methods/exim.rb
mail-2.8.1.rc2 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0.1 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0.1.rc1 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0.rc3 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0.rc2 lib/mail/network/delivery_methods/exim.rb
mail-2.8.0.rc1 lib/mail/network/delivery_methods/exim.rb