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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:25:06+00:00 2026-06-13T06:25:06+00:00

ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com, :port => 587, :domain => ???, :user_name =>

  • 0
ActionMailer::Base.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => ???,
  :user_name            => ???,
  :password             => ???,
  :authentication       => "plain",
  :enable_starttls_auto => true
}

I’m trying to use Action Mailer in Rails to send email to users. I don’t quite understand what should go into :domain, :user_name, and :password. Should it be gmail.com, my Gmail username, and my Gmail password?

  • 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-13T06:25:08+00:00Added an answer on June 13, 2026 at 6:25 am

    Here is an example of setting up ActionMailer to use GMAil to send mail:

    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      :address => "smtp.gmail.com",
      :port => 587,
      :domain => 'gmail.com',
      :user_name => 'my_user_name@gmail.com',
      :password => 'my_gmail_password',
      :authentication => 'plain',
      :enable_start_tts_auto => true
    }
    

    The domain should be “gmail.com” and the username and password should be those of your Google account. To better protect your main GMail account, you should setup a separate GMail account just for sending email.

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

Sidebar

Related Questions

I'm using the following config: ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com, :port => 587,
This is my config file in /config/initializers/setup_mail.rb : ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com,
class SupportMailer < ActionMailer::Base default :from => email1@gmail.com def welcome_email(ticket) case ticket.game when gameone
in my ActionMailer config file I have this: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = {
I have mailer: class AdminMailer < ActionMailer::Base default :from => pejottest@gmail.com def message mail(:to
I have an ActionMailer class class UserMailer < ActionMailer::Base default from: no-reply@spicy-millennium.com def submission_reminder
I've set the following up. ---------------------- config/environments/development.rb ---------------------- 29 ActionMailer::Base.delivery_method = :smtp 30 ActionMailer::Base.perform_deliveries
Are these two lines equivalent: ActionMailer::Base.smtp_settings = { config.action_mailer.smtp_settings ={ I'm trying to configure
How do I set up the email notification with CruiseControl.rb? I've specified the ActionMailer::Base.smtp_settings
We're using the ActionMailer with SMTP as our delivery method and Amazon SES as

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.