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 8040821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:01:10+00:00 2026-06-05T04:01:10+00:00

My application is using Devise, and is sending out confirmation emails properly, and confirming

  • 0

My application is using Devise, and is sending out confirmation emails properly, and confirming users properly as well after they click on the confirmation link. I would also like to send a second email AFTER the user is confirmed.

There is a lot of advice on how to delay confirmation, or 2-step confirmation, but nothing on what I’m looking for (that I can find).

The Devise::Module::Confirmable documentation tells me that the method to use is confirm!, but I am not sure how to do this. Any ideas?

  • 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-06-05T04:01:12+00:00Added an answer on June 5, 2026 at 4:01 am

    Rails Devise: after_confirmation

    Simply define an after_save callback that checks to see if a user was confirmed, and if so, sends the email.

    If you want to save a few CPU cycles, you could override the Devise ConfirmationsController with something like this:

    class ConfirmationsController < Devise::ConfirmationsController
    
        def show
            self.resource = resource_class.confirm_by_token(params[:confirmation_token])
    
            if resource.errors.empty?
                set_flash_message(:notice, :confirmed) if is_navigational_format?
                sign_in(resource_name, resource)
    
                # Send the user a second email          
                send_post_confirmation_email
    
                respond_with_navigational(resource){ redirect_to after_confirmation_path_for(resource_name, resource) }
            else
                respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render :new }
            end
        end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some confusion here. Using devise:invitable, and sending emails from heroku with the sendgrid add
I am using Devise to manage authentication in a Rails 3.1 application. It works
We had an application using axis2 1.0. We recently migrated to axis2 1.4. After
I am sending file using following code in my android application : Intent intent
I am building a rails application using devise for authentication - including :confirmable functionality.
I am developing a Rails3 application using Devise for authentication. In the course of
I have a Rails 3 application using Devise for authentication. In addition to the
I am using devise in my rails application and I have two different resource
I'm using devise gem for login functionality in my Rails3 application.The gem as provides
I have a Rails 3 application using Devise for authentication. Now I need to

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.