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

  • Home
  • SEARCH
  • 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 3421314
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:05:38+00:00 2026-05-18T06:05:38+00:00

I am trying to make an application, that sends an email when user registers.

  • 0

I am trying to make an application, that sends an email when user registers.

i put in the smtp settings for gmail in the config/application.rb file and the mail function looks like

mail(:to => "me@me.com", :subject => "Mail!", :from => "another@me.com", :content_type => "text/html")

now when i see the logs, i see that it says mail has been sent, but i never receive any mail at all…

also, when i call the mail deliver function, Emails.signed(@user).deliver, the form page does not redirect, but it works if i comment out the email sending code that is either

Emails.signed(@user).deliver

or

mail(:to => "me@me.com", :subject => "Mail!", :from => "another@me.com", :content_type => "text/html")

Thanks 🙂

Edit: development.rb

App::Application.configure do
  # Settings specified here will take precedence over those in config/environment.rb

  # In the development environment your application's code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the webserver when you make code changes.
  config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_view.debug_rjs             = true
  config.action_controller.perform_caching = false

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.perform_deliveries = true

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

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-18T06:05:38+00:00Added an answer on May 18, 2026 at 6:05 am

    Somewhat late, but nevertheless maybe this will save someone a few hours of head banging. This is probably only relevant to sending emails from gmail.
    First, in order to help debugging the situation, set the following line in development.rb to true (assuming you’re in development mode):

    config.action_mailer.raise_delivery_errors = true
    

    This will make ActionMailer not to silently ignore errors.
    When I did that, I realized gmail is refusing my username and password.
    I then went to my configuration file where I put all the Action Mailer config directives (for me it was in development.rb, there is probably a better place to put it), and noticed that :user_name was set to “admin” rather than “admin@thedomain.com”. Changing it solved the problem. Here is my corrected part of development.rb:

      config.action_mailer.delivery_method = :smtp
      config.action_mailer.smtp_settings = {
      :address              => "smtp.gmail.com",
      :port                 => 587,
      :domain               => 'thedomain.com',
      :user_name            => 'admin@thedomain.com',
      :password             => '<password>',
      :authentication       => 'plain',
      :enable_starttls_auto => true  }
    

    References:

    http://forums.pragprog.com/forums/43/topics/541
    http://edgeguides.rubyonrails.org/action_mailer_basics.html

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

Sidebar

Related Questions

I'm trying to make an application that keeps an object model in sync with
Alright so here is the deal. I am trying to make a application that's
Recently I was trying to make a calendar application that will display the current
I'm currently trying to make a small application that performs different duties. Right now
I'm trying to make an iPhone/iPad application that uses VTK to visualize DICOM images
I'm trying to make an EXTJS application to send email with an attachment. So
Trying to make a MySQL-based application support MS SQL, I ran into the following
I have a Perl application someone else wrote and I'm trying to make it
Trying to make a make generic select control that I can dynamically add elements
I have a web application that currently sends emails. At the time my web

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.