Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6866541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:11:49+00:00 2026-05-27T03:11:49+00:00

I have a solution where I be able to send the devise ‘ stock

  • 0

I have a solution where I be able to send the devise ‘ stock emails ‘ the mail messages that are defaultly included in Devise with Delayed jobs. In a async manner. Therefore I use the following code:

/initializers/devise_acync.rb

module Devise


  module Models

    module Confirmable
      alias_method :send_confirmation_instructions_without_delay, :send_confirmation_instructions
      handle_asynchronously :send_confirmation_instructions
    end

    module Recoverable
      alias_method :send_reset_password_instructions_without_delay, :send_reset_password_instructions
      handle_asynchronously :send_reset_password_instructions
    end

    module Lockable
      alias_method :send_unlock_instructions_without_delay, :send_unlock_instructions
      handle_asynchronously :send_unlock_instructions
    end

    module Invitable
      alias_method :deliver_invitation_without_delay, :deliver_invitation
      handle_asynchronously :deliver_invitation
    end


  end

end

In my User Model devise is linked to this model I do

def confirm!
    welcome_message
    super
  end

private

  def welcome_message
     ::Devise.mailer.welcome_instructions(self).deliver
  end

The big question that keeps me dazzled:
How would I be able to send this welcome message true delayed_job?
And how would you add other emails that are custom and not devise included so they get send true delayed_job also?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:11:50+00:00Added an answer on May 27, 2026 at 3:11 am

    Have you tried doing it like this:

    def welcome_message
      ::Devise.mailer.delay.welcome_instructions(self)
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses SmtpClient to send E-Mail, but the E-Mails are
Currently I have solution A that contains a domain layer base and solution B
I have a solution that is deployed using ClickOnce. It consists of an application,
I have a client that wanted their sales staff to be able to populate
My web app needs to be able to send XMPP messages (Facebook Chat), and
I have a BizTalk 2010 solution that polls a database table, retrieves unprocessed records,
In a custom DotNetNuke module, I want to be able to send emails based
This is a relatively simple question that may just not have a solution. Is
I have a solution with several projects. One of them is a setup project.
I have a solution with many projects. One project contain few custom components. One

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.