Registration mail with original URL

Hi,
When a user tries to access a restricted page and then fills in the registration form, it would be really great to also include in the e-mail with the password the URL of the original page he/she was trying to access so they can easily get back to the requested content. Is that possible? How?
Thanks!
When a user tries to access a restricted page and then fills in the registration form, it would be really great to also include in the e-mail with the password the URL of the original page he/she was trying to access so they can easily get back to the requested content. Is that possible? How?
Thanks!