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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:40:20+00:00 2026-05-23T01:40:20+00:00

When I click on the link in my confirmation email that devise sends, it

  • 0

When I click on the link in my confirmation email that devise sends, it seems to go to a path that is not recognized by my application.

The url looks something like this:

http://glowing-flower-855.heroku.com/users/confirmation?confirmation_token=lIUuOINyxfTW3TBPPI

which looks correct, but it seems to go to my 500.html file.

It has something to do with this code in my user model that overrides Devise’s confirm! method:

def confirm!
  UserMailer.welcome_message(self).deliver
  super
end 

According to my logs, this is the error:

2011-06-10T03:48:11+00:00 app[web.1]: ArgumentError (A sender (Return-Path, Sender or From) required to send a message): 
2011-06-10T03:48:11+00:00 app[web.1]: app/models/user.rb:52:in `confirm!'

which points to this line: UserMailer.welcome_message(self).deliver

Here’s my user mailer class:

class UserMailer < ActionMailer::Base
  def welcome_message(user)
    @user = user
    mail(:to => user.email, :subject => "Welcome to DreamStill")
  end
end
  • 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-23T01:40:21+00:00Added an answer on May 23, 2026 at 1:40 am

    You are missing the “from:” value, it’s a must for SMTP handling:

    class UserMailer < ActionMailer::Base
      # Option 1
      #default_from "bob@dylan.com"
    
      def welcome_message(user)
        @user = user
        mail(
          # Option 2
          :from => "paul@mccarthy.com",
          :to => user.email, 
          :subject => "Welcome to DreamStill"
        )
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i click a link im calling a servlet. When i click that link
When a user click a link, it would redirect them to a page, something
I got this flash application where you can click a link while watching a
I have a link that I would like to present with a confirmation. I
We have a password reset web application. The application sends out an confirmation code
$('#order_info_print_confirmation').click(function() { var link = 'action_URL' + ? + $('action_NAME').serialize(); window.open(link,Print Confirmation,directories=no,status=yes,width=620, height=900,top=0,left=0,scrollbars=yes); });
We send out a confirmation email on completed registration. User need to click a
Tried this: $('.link').click(function(e) { $.getScript('http://www.google.com/uds/api?file=uds.js&amp;v=1.0', function() { $('body').append('<p>GOOGLE API (UDS) is loaded</p>'); }); return
I use Javascript to click a link in the webbrowser control. But I don't
i have created Array of Linkbutton and when user click on link button it

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.