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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:41:47+00:00 2026-05-22T19:41:47+00:00

I am trying to debug how rails sends email. Currently it doesn’t work for

  • 0

I am trying to debug how rails sends email. Currently it doesn’t work for me 🙂

But where in the configurations do I change the SMTP I am trying to send from? And how to I set it up so that on dev/stage/live it uses appropriate SMTP configurations of the server it is mailing from?

Thanks,
Alex

ps – I had originally set it up using this tutorial: http://guides.rubyonrails.org/action_mailer_basics.html

  • 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-22T19:41:47+00:00Added an answer on May 22, 2026 at 7:41 pm

    Examples are assuming that you use the mail server MAIL.YOUR-DOMAIN.COM

    Action Mailer now uses the Mail gem — you probably need something like this in your ./config/environments/env.rb file:

    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      :address              => "MAIL.YOUR-DOMAIN.COM",
      :port                 => 587,
      :domain               => 'YOUR-DOMAIN.COM',
      :user_name            => '<username>',
      :password             => '<password>',
      :authentication       => 'plain',
      :enable_starttls_auto => true  }
    config.action_mailer.perform_deliveries = true
    config.action_mailer.raise_delivery_errors = true
    

    see also: http://edgeguides.rubyonrails.org/action_mailer_basics.html

    another way to do this is to put the follwoing into ./config/initializers/setup_mail.rb :

    ActionMailer::Base.smtp_settings = {  
          :address              => "MAIL.YOUR-DOMAIN.COM",  
          :port                 => 587,  
          :domain               => "YOUR-DOMAIN.COM",  
         :user_name            => "<username>"
          :password             => "<password>"
          :authentication       => "plain",  
          :enable_starttls_auto => true  
       }
    

    e.g. the code above works if you want to use Gmail’s SMTP server to send email via your Gmail account..
    Other SMTP servers may need other values for :authentication and :enable_starttls_auto
    depending on the SMTP server setup

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

Sidebar

Related Questions

I'm currently trying to debug a customer's issue with an FTP upload feature in
What's an effective approach to debug NameErrors in Rails? I'm trying to use the
I'm trying to initiate a Rails 3 console from Netbeans 6.9.1 (just upgraded) and
Trying to debug an issue with a server and my only log file is
I'm trying to debug a deadlock in a multi-threaded Python application after it has
I'm trying to debug an application (under PostgreSQL) and came across the following error:
I am trying to debug a strange issue with users that have LogMeIn installed.
I'm trying to debug an MSBuild task, and I know there is some way
I’m trying to debug a memory leak problem. I’m using mtrace() to get a
Hi I'm trying to debug a stored procedure through SQL Analyzer and one of

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.