Method: ActionMailbox::Base#bounce_with

Defined in:
actionmailbox/lib/action_mailbox/base.rb

#bounce_with(message) ⇒ Object

Enqueues the given message for delivery and changes the inbound email’s status to :bounced.



105
106
107
108
# File 'actionmailbox/lib/action_mailbox/base.rb', line 105

def bounce_with(message)
  inbound_email.bounced!
  message.deliver_later
end