# Restful authentication - sending email activation

**URL:** <https://www.ruby-forum.com/t/restful-authentication-sending-email-activation/169520>\
**Category:** Rails\
**Created:** [June 4, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-sending-email-activation/169520 "2009-06-04T20:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [June 4, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-sending-email-activation/169520/1 "2009-06-04T20:23:41Z")

</div>

for some reason, when i run restful\_authentication on my development  
server, the server will generate the activation email, but when i run  
the same codebase on the production server, the activation email makes  
no attempt to send…

[development.log]  
Processing UsersController#create (for 127.0.0.1 at 2009-06-04 13:56:04)  
[POST]  
Parameters: {“user”=\>{“password\_confirmation”=\>“xxx”,  
“password”=\>“xxx”, “login”=\>“xxx”, “email”=\>“xxx”}, “commit”=\>“Sign up”,  
“authenticity\_token”=\>“xxx”}  
Cookie set: auth\_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT  
User Exists (0.2ms) SELECT “users”.id FROM “users” WHERE  
(“users”.“login” = ‘xxx’) LIMIT 1  
User Exists (0.1ms) SELECT “users”.id FROM “users” WHERE  
(“users”.“email” = ‘xxx’) LIMIT 1  
User Create (0.6ms) INSERT INTO “users” (“name”, “salt”,  
“updated\_at”, “activated\_at”, “crypted\_password”,  
“remember\_token\_expires\_at”, “activation\_code”, “remember\_token”,  
“login”, “email”, “created\_at”) VALUES(‘’,  
‘345e1c4d95b6b771fc015d7ae710ce4f5cf40ecd’, ‘2009-06-04 17:56:04’, NULL,  
‘951c7f1c7adeba7689cf2c3d69faab3d15031fdc’, NULL,  
‘938e16e49a6e34f1b00a416dcc7f357fce6a28bf’, NULL, ‘xxx’, ‘xxx’,  
‘2009-06-04 17:56:04’)  
Sent mail to xxx

Date: Thu, 4 Jun 2009 13:56:04 -0400  
From: xxx  
To: xxx  
Subject: [xxx] Please activate your new account  
Mime-Version: 1.0  
Content-Type: text/plain; charset=utf-8

Your account has been created.

Username: xxx  
Password: xxx

Visit this url to activate your account:

[http://xxx:8003/activate/938e16e49a6e34f1b00a416dcc7f357fce6a28bf](http://xxx:8003/activate/938e16e49a6e34f1b00a416dcc7f357fce6a28bf)  
Redirected to /  
Completed in 57ms (DB: 1) | 302 Found [[http://localhost/users](http://localhost/users)]

[production log]

Processing UsersController#create (for 192.168.2.1 at 2009-06-04  
14:15:58) [POST]  
Parameters: {“commit”=\>“Sign up”,  
“authenticity\_token”=\>“4151357ce1cc0a18ec9a31c2914a004e6a1f161b”,  
“user”=\>{“password\_confirmation”=\>“xxx”, “password”=\>“xxx”,  
“login”=\>“xxx”, “email”=\>“xxx”}}  
Cookie set: auth\_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT  
Sent mail to xxx  
Redirected to /  
Completed in 370ms (DB: 3) | 302 Found  
[[http://red-red.dyndns.info/users](http://red-red.dyndns.info/users)]
