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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:56:21+00:00 2026-05-14T23:56:21+00:00

Hey all. I’ve got a new app up and running on a new ubuntu

  • 0

Hey all. I’ve got a new app up and running on a new ubuntu server. It’s working fine generally but i can’t get ar_sendmail working. I’m following the instructions on this page:
http://www.ameravant.com/posts/sending-tons-of-emails-in-ruby-on-rails-with-ar_mailer

The setup is all done, ie i can “deliver mails” which just saves records in my Email table. Now i want to get the ar_sendmail daemon running to actually send them. (so i’m at ‘Running ar_sendmail in daemon mode’ in that web page).

First thing:

ar_sendmail --mailq
>>ar_sendmail: command not found

Ok…so, where is ar_sendmail? I have a look and there’s an ar_sendmail file in the bin folder of the ar_mailer plugin, so i add the location of that to my path. I don’t know if this was the right thing to do or not.

Ok, so try again.

ar_sendmail --mailq
/var/www/apps/millionaire/vendor/plugins/ar_mailer/bin/ar_sendmail:3:in `require': no such file to load -- action_mailer/ar_sendmail (LoadError)
    from /var/www/apps/millionaire/vendor/plugins/ar_mailer/bin/ar_sendmail:3

hmm. Here’s the offending file, there’s not much there.

#!/usr/bin/env ruby

require 'action_mailer/ar_sendmail'

ActionMailer::ARSendmail.run

ok…so it literally is just trying to require this and can’t find it. The file, action_mailer/ar_sendmail.rb is in the ar_mailer plugin, in it’s lib folder. So, given that it’s being called from inside the plugin, it should be able to see this right?

I’ve got a feeling that i’m way off the track here and have missed something simple. Can anyone set me straight? I’m using rails 2.3.4 in case that’s relevant.

EDIT – i just realised something kind of dumb: when i call ar_sendmail from the command line like this, i’m just loading that one file, which doesn’t know where it’s supposed to look for the rest of the stuff, i think. Which really makes me think that i’m not trying to run the right thing. Is the ar_sendmail daemon a seperate program altogether, that i would get with apt_get or something?

EDIT2 – i made some progress by installing the ar_mailer gem (which the guide said i shouldn’t do) and that does seem to run. It’s sending some mail request somewhere and clearing the Email table of pending emails. Running ar_sendmail in -ov (oneshot verbal) mode i see it report this for example:

sent email 00000000019 from from@address.com to to@address.com: #

So, it actually looks like it’s working now and i just need to set up the ACTUAL THING WHICH SENDS EMAILS. sigh. still grateful for any advice.

thanks, max

  • 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-14T23:56:22+00:00Added an answer on May 14, 2026 at 11:56 pm

    What you need is an smtp server. Checkout http://www.sendgrid.com.

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

Sidebar

Related Questions

Hey all i am probably overthinking this but how can i check the textbox
Hey all. Ive got a headache trying to get my head around this. I
hey all when installing my app to the emulator I get this: ERROR/AndroidRuntime(465): java.lang.RuntimeException:
Hey all, I'm having some trouble setting up my grails application. Running the app
Hey all i am new at classes and arrays in php but need to
Hey all i am in need of some help getting my code working correctly
Hey all I'm extremely new to jquery and ajax and I'm looking for some
Hey all i have a JSFiddle that i have been working on with trying
Hey all, I don't know how to properly phrase this but when I run
Hey all. I have the following code: http://jsfiddle.net/g7Cgg/ As you can see, there are

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.