Confirmation mail doesn't arrive

Rails 3.1.3

I have created a Rails application on Heroku using Devise.
User accounts need confirmation so the application should send mails
after sign up.
But it does not send mail at all.

I am in a trouble because it does not really show any particular error.
But “heroku logs” gives,


2012-02-23T05:03:20+00:00 app[web.1]: Started POST “/users” for
111.103.181.57 at 2012-02-23 05:03:20 +0000
2012-02-23T05:03:20+00:00 app[web.1]: Processing by
Devise::RegistrationsController#create as HTML
2012-02-23T05:03:20+00:00 app[web.1]: Parameters: {“utf8”=>“✓”,
“authenticity_token”=>“tocsI0yvJp2ZmWf32qFPfr8K+yccHZfbro41lSAsvb0=”,
“user”=>{“username”=>“そういち”, “email”=>“[email protected]”,
“password”=>"[FILTERED]", “password_confirmation”=>"[FILTERED]"},
“commit”=>“Sign up”}
2012-02-23T05:03:20+00:00 app[web.1]: Rendered
devise/mailer/confirmation_instructions.html.erb (0.8ms)
2012-02-23T05:03:24+00:00 app[web.1]:
2012-02-23T05:03:24+00:00 app[web.1]: Sent mail to [email protected]
(3082ms)
2012-02-23T05:03:24+00:00 app[web.1]: Redirected to
http://empty-lightning-1693.herokuapp.com/
2012-02-23T05:03:24+00:00 app[web.1]: Completed 302 Found in 3797ms
2012-02-23T05:03:24+00:00 app[web.1]: cache: [POST /users] invalidate,
pass
2012-02-23T05:03:24+00:00 heroku[router]: POST
empty-lightning-1693.herokuapp.com/users dyno=web.1 queue=0 wait=0ms
service=4063ms status=302 bytes=108

It certainly said “Sent mail to …”. But it doesn’t come.

Does anyone have any clue?

Thanks in advance!

soichi

Have you checked config/devise.rb?

You have to write the email, or you should check this

https://github.com/plataformatec/devise/wiki/How-To:-Mass-password-reset-and-email-notification

Javier Q.

You have to write the email, or you should check this

I have put

config.mailer_sender = “[email protected]

in config/initializers/devise.rb

Is this enough?

soichi

Thanks. I realized there are a lot more to do.

soichi

On Thu, Feb 23, 2012 at 12:58 AM, Soichi I.
[email protected]wrote:

Is this enough?

soichi

To be honest I’ve never tried it in heroku, once I saw this but didn’t
try

http://devcenter.heroku.com/articles/smtp

Javier Q.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs