Hello,
Since this morning, i did''t receive the emails from my RoR application.
Perhaps when i was checking develoment.rb , i can see that my email was
sent.
my model
setup_email(user)
@subject += ''Please activate your new account''
@body[:url] =
"http://localhost:3000/users/activate/#{user.activation_code}"
end
def activation(user)
setup_email(user)
@subject += ''Your account has been activated!''
@body[:url] = "http://localhost:3000/"
end
protected
def setup_email(user)
@recipients = "#{user.email}"
@from = "faq-vtK78OlMqafYtjvyW6yDsg@public.gmane.org"
@subject = "http://localhost:3000/"
@sent_on = Time.now
@body[:user] = user
end
end
develoment.rb
Processing UsersController#create (for 127.0.0.1 at 2006-10-14 10:56:16)
[POST]
Session ID: 3e985810cfe18b0e0133725dde987d15
Parameters:
{"user"=>{"password_confirmation"=>"toto",
"login"=>"toto",
"password"=>"toto",
"email"=>"malavoi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"},
"commit"=>"Sign up",
"action"=>"create",
"controller"=>"users"}
[4;36;1mSQL (0.002432) [0;1mPRAGMA table_info(users)
[4;35;1mUser Load (0.000325) SELECT * FROM users WHERE
(UPPER(users.login) = ''TOTO'') LIMIT 1
[4;36;1mUser Load (0.000425) [0;1mSELECT * FROM users WHERE
(UPPER(users.email) =
''MALAVOI-8a+P9i1ojmF8zQARNC3f2A@public.gmane.org'') LIMIT 1
[4;35;1mUser Load (0.000234) SELECT * FROM users WHERE
(UPPER(users.login) = ''TOTO'') LIMIT 1
[4;36;1mUser Load (0.000155) [0;1mSELECT * FROM users WHERE
(UPPER(users.email) =
''MALAVOI-8a+P9i1ojmF8zQARNC3f2A@public.gmane.org'') LIMIT 1
[4;35;1mSQL (0.000496) INSERT INTO users ("salt",
"activated_at", "updated_at", "crypted_password",
"activation_code",
"remember_token_expires_at", "role",
"remember_token", "login",
"created_at", "email")
VALUES(''aa7fb8ee5ecbda4d88b88b69e55fe16fe3fe68c7'', NULL,
''2006-10-14
10:56:16'',
''671594897e9abe82e8a029500aa633b33ce16c7d'',
''3094354317cb3d4eb906e9af16aa2ce745b11e56'', NULL,
''low_user'', NULL,
''toto'', ''2006-10-14 10:56:16'',
''malavoi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'')
Sent mail:
Date: Sat, 14 Oct 2006 10:56:16 -0400
From: faq-vtK78OlMqafYtjvyW6yDsg@public.gmane.org
To: malavoi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: http://localhost:3000/Please activate your new account
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Your account has been created.
Username: toto
Password: toto
Visit this url to activate your account:
http://localhost:3000/users/activate/3094354317cb3d4eb906e9af16aa2ce745b11e56
Redirected to http://localhost:3000/users
Completed in 0.43110 (2 reqs/sec) | DB: 0.00407 (0%) | 302 Found
[http://localhost/users]
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---