Email validation/activation with rails
- Install the restful_authentication plugin
- run script/generate authentication user sessions ?include-activation
- rake db:migrate
- see this link
- on the part where you create the mail.rb config/initializer use this link instead, pasting that code in the place of the code recommended by avnetlabs.com?s tutorial
- create a new file called smtp_tls.rb in your lib folder and paste this code into it
- open the production and development configuration files, config/environments/production.rb and config/environments/development.rb and put in the SITE_URL = ?localhost:3000? and for production your webdomain. according to avnetlabs
- edit the user_mailer.rb model to use the SITE_URL variable instead
- Open the email template files (app/views/user_mailer/activation.html.erb and app/views/user_mailer/signup_notification.html.erb) and modify as desired
- that?s it
Resources

Scott Motte » Blog Archive » UPDATED: Email validation/activation with rails, restful_authentication, and gmail smtp | August 18, 2008
[...] is updated from my old post on the subject. It’s a process cheat sheet for [...]