Reputation: 644
I've been following this tutorial on how to setup Devise. I'm able to make a new User&Email and hit submit. It says "User succesfully created" and in the server log I can see the email that was just sent with subject, email adress to user, name of user etc and it says "Completed 302 Found in 434ms". I don't know what the problem is though because I don't receive an email, although the user gets saved to the database. I'm using gmail to send email.
This is the server log (Changed email addresses to --- for privacy):
Sent mail to [email protected] (389ms)
Date: Fri, 12 Aug 2011 09:11:45 -0500
From: [email protected]
Message-ID: <[email protected]>
Subject: Registered
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Thank you for registering!
Redirected to http://127.0.0.1:3000/users/4
Completed 302 Found in 434ms
Anyone know how it could be solved or recognize the problem?
Upvotes: 1
Views: 1902
Reputation: 3054
Have you checked your config/environment/development.rb file? Make sure that config.action_mailer.perform_deliveries is set to true. See below:
config.action_mailer.raise_delivery_errors = false
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :sendmail #:smtp
Otherwise, it's likely actually being sent and your email account is dropping the message silently. Turn up the first option above (…raise_delivery_errors = true) to see.
Upvotes: 2