Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support deferred Mailer delivery with deliver_later #5610

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 9, 2024

  1. Support deferred Mailer deliver with deliver_later

    Re-opens [heartcombo#4224][]
    
    By default, all `Devise::Models::Authenticatable`-initiated Action
    Mailer deliveries are transmitted immediately (within the
    request-response cycle).
    
    Transmitting emails and interacting with any third-party services over
    SMTP or HTTP risk service outages and other types of network-related
    failures.
    
    This commit adds support for deferring delivery to be done from an
    Action Job background worker queue through the [deliver_later][] method.
    
    ```ruby
     # config/initializers/devise.rb
    Devise.mailer_delivery_method = :deliver_later
    ```
    
    [heartcombo#4224]: heartcombo#4224
    [deliver_now]: https://edgeapi.rubyonrails.org/classes/ActionMailer/MessageDelivery.html#method-i-deliver_now
    [deliver_later]: https://edgeapi.rubyonrails.org/classes/ActionMailer/MessageDelivery.html#method-i-deliver_later
    seanpdoyle committed May 9, 2024
    Configuration menu
    Copy the full SHA
    8771674 View commit details
    Browse the repository at this point in the history