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"=>"soujiro0725@gmail.com",
"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 soujiro0725@gmail.com
(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
on 2012-02-23 06:19
on 2012-02-23 06:37
Have you checked config/devise.rb? You have to write the email, or you should check this https://github.com/plataformatec/devise/wiki/How-T... Javier Q.
on 2012-02-23 06:58
> > You have to write the email, or you should check this > I have put config.mailer_sender = "no-reply@empty-lightning-1693.herokuapp.com" in config/initializers/devise.rb Is this enough? soichi
on 2012-02-23 07:01
On Thu, Feb 23, 2012 at 12:58 AM, Soichi Ishida <lists@ruby-forum.com>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.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.