No receive email

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 = “[email protected]
@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”=>“[email protected]”},
“commit”=>“Sign up”, “action”=>“create”, “controller”=>“users”}
e[4;36;1mSQL (0.002432)e[0m e[0;1mPRAGMA table_info(users)e[0m
e[4;35;1mUser Load (0.000325)e[0m e[0mSELECT * FROM users WHERE
(UPPER(users.login) = ‘TOTO’) LIMIT 1e[0m
e[4;36;1mUser Load (0.000425)e[0m e[0;1mSELECT * FROM users WHERE
(UPPER(users.email) = ‘[email protected]’) LIMIT 1e[0m
e[4;35;1mUser Load (0.000234)e[0m e[0mSELECT * FROM users WHERE
(UPPER(users.login) = ‘TOTO’) LIMIT 1e[0m
e[4;36;1mUser Load (0.000155)e[0m e[0;1mSELECT * FROM users WHERE
(UPPER(users.email) = ‘[email protected]’) LIMIT 1e[0m
e[4;35;1mSQL (0.000496)e[0m e[0mINSERT 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’, ‘[email protected]’)e[0m
Sent mail:
Date: Sat, 14 Oct 2006 10:56:16 -0400
From: [email protected]
To: [email protected]
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

it’s working with smtp but not with :sendemail

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