Sha256: 9b1cfa706b31a9a9ea976315e69947aa0dceefa7f2a0966518e886f6c10d4755

Contents?: true

Size: 230 Bytes

Versions: 3

Compression:

Stored size: 230 Bytes

Contents

require 'mail'

module MailSafe
  class MailInterceptor
    def self.delivering_email(message)
      MailSafe::AddressReplacer.replace_external_addresses(message) if message
    end

    ::Mail.register_interceptor(self)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail_safe-0.3.4 lib/mail_safe/rails_hook.rb
mail_safe-0.3.3 lib/mail_safe/rails_hook.rb
mail_safe-0.3.2 lib/mail_safe/rails_hook.rb