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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:35:12+00:00 2026-06-08T16:35:12+00:00

trying to send email form Ruby on Rails but getting this: SocketError in UsersController#create

  • 0

trying to send email form Ruby on Rails but getting this:

SocketError in UsersController#create
getaddrinfo: nodename nor servname provided, or not known

My environments/development.rb file has:

  config.action_mailer.smtp_settings = { 
    address: "smtp.gmail.com",
    port: 587,
    domain: "my_company.org",
    authentication: "plain",
    enable_starttls_auto: true,
    user_name: "my_username@my_company.org",
    password: "my_pass"
  }

and

  config.action_mailer.delivery_method = :smtp

and

  config.action_mailer.default_url_options = { :host => 'localhost:5000' } 
  # 5000 rather than 3000 as I am using foreman.
  • 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-08T16:35:13+00:00Added an answer on June 8, 2026 at 4:35 pm

    I did the same using my Gmail, following are my configurations, try and see it if works

      config.action_mailer.default_url_options = { :host => 'localhost:3000' }
      ActionMailer::Base.smtp_settings = {
                        :address        => "smtp.gmail.com",
                        :port           => 587,
                        :authentication => :plain,
                        :user_name      => "<my gmail>@gmail.com",
                        :password       => "<my gmail password>",
                        :openssl_verify_mode  => 'none'
      } 
    

    and please note the

    :openssl_verify_mode  => 'none'
    

    section to skip the SSL errors.

    But sorry, I have no idea what the error is, probably you try to use the Gmail SMTP server with another domain name.

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

Sidebar

Related Questions

I am trying to create an email form that allows you to send an
I am trying to send an email to customers with html form. here is
I'm trying to setup an email form to send feedback from my website, here
I'm trying to send information from a form and a hidden email variable (from
I am trying to send email using AJAX and PHP but no success:( My
I am trying to send email using smtp authentication through google but I am
I'm trying to send an email from my application with a PHP contact form,
Im trying to send a Docx file via this form that I made, the
I am trying to send the user an email and I used this code:
I am currently trying to send an email from an hmtl form using the

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.