Search code examples
ruby-on-railsrubyactionmailerpony

Rails Mailer Ubuntu


In my rails application (running on a mac), I'm using a gem called pony. When I create a message through pony I get the following output (out of a rails console).

#<Mail::Message:2186559360, Multipart: false, Headers: <Date: Tue, 13 Dec 2011 00:15:14 -0500>, <From: you@me.com>, <To: myself@hotmail.com>, <Message-ID: <4ee6df6288e90_30b080443b3c8148e@My-Name-MacBook-Pro.local.mail>>, <Subject: nothing>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>

This message sends without problem.

For a separate application, running on Ubuntu, pony throws me errors.

I didn't post the errors, because I switched to a gem called mail which gives the same output after sending a message (no errors, the console says it sent fine). But the problem is that no message get sent on the Ubuntu system.

I suspect it's because I've never set up a mailing system on the Ubuntu system (if that's an action that ever needs to be done in the programming world). If it is, I'm not sure how I should do this, so that my mail will get sent.

I'm using rails 3 and Ubuntu Oneiric Ocelot.


Solution

  • Go to ubuntu software center. Search for

    mail agent
    

    (what you need is a mail transfer agent)

    now something called 'mutt' should be there. Install it. (it worked for me when i had this problem)