Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I'm using password recovery in Rails, I get this in the development log:

Sent mail to (1024ms)
Date: Sat, 21 Jul 2012 15:24:35 +0700
Message-ID: <500a67432a8c0_221a25cc491863578@mybox.mail>
Subject: subj
Mime-Version: 1.0
Content-Type: text/html;
Content-Transfer-Encoding: base64

base64-encoded stuff here...

But the mail is never actually delivered. However when I'm sending mail directly through the sendmail, it works fine:

echo 'this is a test' | mail -s test_email

What could be wrong? I'm using Rails 3.2.3 with the latest devise version (I guess devise has nothing to do with it since it forms the message alright, but still).

share|improve this question

closed as not a real question by womble, mailq, Ward, Scott Pack, Michael Hampton Aug 29 '12 at 23:22

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 3 down vote accepted

Have you told your development environment to actually deliver mail? Normally, that sort of thing is turned off in development specifically because you don't normally want to deliver mail in development.

share|improve this answer
Oh my god, is it so simple? :D – Alexei Averchenko Jul 21 '12 at 14:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.