Class: ActionMailer::Message
- Defined in:
- runtime/action_mailer/message.rb,
runtime/action_mailer/message.rbs
Overview
One built mail: the header values and the delivery entry points.
Instance Method Summary collapse
- #body ⇒ Object
-
#deliver_later ⇒ Message
queue the delivery outside test mode and return the message.
-
#deliver_now ⇒ Message
deliver through the registered method and return the message.
- #from ⇒ Object
-
#initialize(opts) ⇒ Message
constructor
A new instance of Message.
- #replyto ⇒ Object
- #subject ⇒ Object
- #to ⇒ Object
Constructor Details
#initialize(opts) ⇒ Message
Returns a new instance of Message.
9 |
# File 'runtime/action_mailer/message.rbs', line 9
def initialize: (Hash[Symbol, untyped] opts) -> void
|
Instance Method Details
#deliver_later ⇒ Message
queue the delivery outside test mode and return the message. Test mode
stays inline so DeliveryLog / assert_emails see the line immediately;
with no executor, ActiveJob runs it at the call site.
47 |
# File 'runtime/action_mailer/message.rb', line 47
def deliver_later: () -> Message
|
#deliver_now ⇒ Message
deliver through the registered method and return the message.
The seam name is deliver: every same-name method in the program must
fit this signature.
38 |
# File 'runtime/action_mailer/message.rb', line 38
def deliver_now: () -> Message
|