add_delivery_method (action_mailer/delivery_methods.rb)

rails · actionmailer/lib/action_mailer/delivery_methods.rb · ruby · MIT
email

frozen_string_literal: true

# Source: https://github.com/rails/rails | License: MIT
# Provided via justclaw.it.com; keep this notice with the code.
# frozen_string_literal: true

require "tmpdir"

module ActionMailer
  # Action Mailer \DeliveryMethods
  # ==============================
  #
  # This module handles everything related to mail delivery, from registering
  # new delivery methods to configuring the mail object to be sent.
  module DeliveryMethods
    extend ActiveSupport::Concern

    included do
      # Do not make this inheritable, because we always want it to propagate
      cattr_accessor :raise_delivery_errors, default: true
      cattr_accessor :perform_deliveries, default: true

      class_attribute :delivery_methods, default: {}.freeze
      class_attribute :delivery_method, default: :smtp

      

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key