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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:22:06+00:00 2026-06-10T20:22:06+00:00

I am using the Devise gem and I have an initializer to setup mail

  • 0

I am using the Devise gem and I have an initializer to setup mail as below:

   ActionMailer::Base.smtp_settings = {
       :enable_starttls_auto => true,
       :address            => 'smtp.gmail.com',
       :port               => 587,
       :domain             => 'mydomain.com',
       :authentication     => 'plain',
       :user_name          => 'info@mydomain.com',
       :password           => 'password' 
    }

In devise.rb I have also set the following:

config.mailer_sender = "info@mydomain.com"

The problem I have is that when I try sent the “Forgot your password” email. My application does send the email but the link to allow me to reset the email contains the gmail domain, as follows:

http://gmail.com/users/password/edit?reset_password_token=JDKdSyhtDBkyq4Sgs2J3

I obviously need that domain to be my application’s domain so the user can reset their password. What do I need to change?

  • 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-10T20:22:08+00:00Added an answer on June 10, 2026 at 8:22 pm

    Weird configuration, I usually simply set:

    config.action_mailer.default_url_options = { :host => "example.com" }
    

    In my production or development .rb file


    Just understood, config.mailer_sender = "info@mydomain.com" is meant to fill in your from field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have such problem: I'm using rails, devise gem and jQuery validation plugin. I
I am using rails3 and gem devise and i have two roles admin and
I am using the devise gem for authentication and have the following before_filter in
I using devise gem for registration but i have problem. my table include: first_name,
I'm using omniauth-facebook gem with rails 3.2 and devise 2.0. I have a website
I have created a new rails app (3.2.8) using Devise. All is setup properly,
I am using the devise gem, and I have had user registration working in
I'm using Rails and Devise gem. I want to PayPal account. I have function:
I am using Devise gem and I want to change the redirect path after
I am using the Devise gem and in the sign in page I expect

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.