ACCOUNT INFO DELIVERY FAILED+example
(1) added smtp settings to wagn.rb:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:authentication => :login,
:enable_starttls_auto => true,
:user_name => "no_reply@gmail.com",
:password => "123456"
}
(2) user named test2 signed up:
msg from console:
Processing AccountController#signup (for 136.160.154.114 at 2011-02-10 21:07:36) [POST]
Parameters: {"commit"=>"Submit", "content_to_replace"=>"<p>hi</p>", "card"=>{"name"=>"test2", "type"=>"InvitationRequest", "content"=>"<p>hi</p>"}, "element"=>"main-body", "user"=>{"email"=>"test2@gmail.com"}}
Sent mail to admin@mydomain.com
Redirected to http://xxx.com/wagn/Request_Sent
Completed in 2086ms (DB: 64) | 302 Found [http://xxx.com/account/signup]
Processing CardController#show (for 136.160.154.114 at 2011-02-10 21:07:38) [GET]
Parameters: {"id"=>"Request_Sent"}
Rendering template within layouts/application
Completed in 239ms (View: 230, DB: 4) | 200 OK [http://xxx.com/wagn/Request_Sent]
(3) email was received in admin@mydomain.com
email title: test2 signed up for My Magn
content: test2 has requested an account on My Wagn
[blablah...]
(4) login as admin and invite user test2:
msg from console:
Processing AccountController#accept (for 136.160.154.114 at 2011-02-10 21:19:54) [GET]
Parameters: {"card"=>{"key"=>"test2"}}
Rendering template within layouts/application
Rendering account/invite
Completed in 250ms (View: 242, DB: 5) | 200 OK [http://xxx.com/account/accept?card%5Bkey%5D=test2]
ACCOUNT INFO DELIVERY FAILED: //would this be the problem?
{"subject"=>"welcome", "message"=>"hi"}
Processing CardController#show to css (for 136.160.154.114 at 2011-02-10 21:19:54) [GET]
Parameters: {"id"=>"*css", "3074"=>nil}
Completed in 12ms (View: 0, DB: 2) | 200 OK [http://xxx.com/*css.css?3074]
Processing AccountController#accept (for 136.160.154.114 at 2011-02-10 21:20:03) [POST]
Parameters: {"commit"=>"Invite", "card"=>{"key"=>"test2"}, "element"=>"main-body", "user"=>{"email"=>"test2@gmail.com"}, "email"=>{"subject"=>"welcome", "message"=>"hi"}}
Sent mail to test2@gmail.com
Redirected to http://xxx.com/wagn/Invite_Success
Completed in 768ms (DB: 68) | 302 Found [http://xxx.com/account/accept]
(5) But nothing received in test2@gmail.com. Of course it is a valid email address.