Fourth week

Added password confirmation and reset password url last 24h.
I have a problem sending emails both in devepment and production enviroments. Test enviroment is ok I think, because test are correct and I can check ActionMailer::Base.deliveries.last using binding.pry (there is a message). When I use binding.pry during sanity test  ActionMailer::Base.deliveries.last is nil. I guess is because my enviroment variables are not correctly set. I've used tutorial's Option One: Set Unix Environment Variables, and set them in ~/.bashrc file.
Using the app in Heroku I get an error, I think is because of the mail sending. Thank you.