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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:23:28+00:00 2026-05-23T09:23:28+00:00

I am not able to run ar_sendmail command from my terminal. I don’t think

  • 0

I am not able to run ar_sendmail command from my terminal. I don’t think i have missed its configuration. Below is my code;

development.rb
++++++++++++++++++++++++++++++++++++++++++++++++++++
ActionMailer::Base.delivery_method = :activerecord
ActionMailer::Base.smtp_settings = {
  :address => "smtp.gmail.com",
  :port => 25,
  :domain => "www.google.com",
  :authentication => :plain,
  :user_name => "ashis.lun@gmail.com",
  :password => "kathmandu",
  :enable_starttls_auto => true
}
require "action_mailer/ar_mailer"
Gemfile 
+++++++++++++++++++++++++++
gem "ar_mailer", "1.5.1"
My Mailer
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
class Postoffice < ActionMailer::ARMailer
  def recover_password_email(account, name, address)
    @recipients = address
    @from = "ashis.lun@gmail.com"
    @subject = "Your Account at #{account.org_name} is Ready"
    @body["subdomain"] = account.subdomain
    @body["name"] = name
    @body["org_name"] = account.org_name
    @body["password"] = password
    @body["email"] = address
  end
end
My controller
++++++++++++++++++++++++++++++++++++++++++++++++++++
def reset_password
    @user = User.find_by_email(params[:email])

    begin
      if @user
        password = get_new_password
        @user.update_attributes!(:password => password)
        Postoffice.deliver_recover_password_email(@account, @user.individual.firstname, @user.email, password)
        flash[:notice] = "Your password has been e-mailed to you. It should show up in a minute!"
        redirect_to '/sessions/new'      
      end
    rescue
      flash[:notice] = "Sorry, there was a problem resetting your password."
      redirect_to '/sessions/new'
    end
  end
end

Whenever I run ar_sendmail command I just get below message. If i hit RAILS_ROOT in console then I it shows /Users/me/Dev/a5his

Usage: ar_sendmail [options]

ar_sendmail scans the email table for new messages and sends them to the
website's configured SMTP host.

ar_sendmail must be run from a Rails application's root or have it specified
with --chdir.

If ar_sendmail is started with --pid-file, it will fail to start if the PID
file already exists or the contents don't match it's PID.

Sendmail options:
    -b, --batch-size BATCH_SIZE      Maximum number of emails to send per delay
                                     Default: Deliver all available emails
        --delay DELAY                Delay between checks for new mail
                                     in the database
                                     Default: 60
        --max-age MAX_AGE            Maxmimum age for an email. After this
                                     it will be removed from the queue.
                                     Set to 0 to disable queue cleanup.
                                     Default: 604800 seconds
    -o, --once                       Only check for new mail and deliver once
                                     Default: false
    -p, --pid-file [PATH]            File to store the pid in.
                                     Defaults to /var/run/ar_sendmail.pid
                                     when no path is given
    -d, --daemonize                  Run as a daemon process
                                     Default: false
        --mailq                      Display a list of emails waiting to be sent

Setup Options:
        --create-migration           Prints a migration to add an Email table
                                     to stdout
        --create-model               Prints a model for an Email ActiveRecord
                                     object to stdout

Generic Options:
    -c, --chdir PATH                 Use PATH for the application path
                                     Default: .
    -e, --environment RAILS_ENV      Set the RAILS_ENV constant
                                     Default: 
    -t, --table-name TABLE_NAME      Name of table holding emails
                                     Used for both sendmail and
                                     migration creation
                                     Default: Email
    -v, --[no-]verbose               Be verbose
                                     Default: 
    -h, --help                       You're looking at it


ar_sendmail must be run from a Rails application's root to deliver email.

/Users/me/Dev/a5his does not appear to be a Rails application root.

Thanks in advance <><

  • 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-23T09:23:28+00:00Added an answer on May 23, 2026 at 9:23 am

    How about using Delayed Job? I’ve used ar mailer in the past and find delayed job a much better solution.

    https://github.com/collectiveidea/delayed_job

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

Sidebar

Related Questions

My cygwin xterm is not responding to the keyboard. I am able to run
I am not able to run a ProgressDialog inside the doInBackground method of AsyncTask.
Below is the plugin code that i have tried to reuse from an old
I am using rubygem delayed job but not able to run rake task successfully.
I can run LINQ queries successfully to retrieve data from OData providers. I'm not
iam not able to run selenium rc with chrome.it runs fine in firefox.Any one
I am not able to run this -> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_object active X on ie-7, on
Hi All i am not able to run a django application in apache2 webserver.
I am currently having the problem of not able to run the following code
I am not able to run demo app as given on http://code.google.com/googleapps/marketplace/tutorial_php.html It throws

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.