Class: ActionMailer::DeliveryJob

Inherits:
ActiveJob::Base show all
Defined in:
runtime/action_mailer/delivery_job.rb,
runtime/action_mailer/delivery_job.rbs

Overview

The queue half of deliver_later: rebuilds the message and delivers it.

Class Method Summary collapse

Methods inherited from ActiveJob::Base

job_name

Class Method Details

.perform(data) ⇒ void

rebuild the message from the serialized payload and deliver it. The provider's failure reaches the job boundary, which records it as job.failed.

Parameters:

  • data (Hash{String => untyped}) —

    the delivery payload

Raises:

  • (RuntimeError) —

    no delivery method is registered



11
# File 'runtime/action_mailer/delivery_job.rb', line 11

def self.perform: (Hash[String, untyped] data) -> void