Hard-coding the URL here means that the link will only work for the production deployment.  You should let rails handle this by using root_url in the mail view itself.