Email links relative to environment

A change to the the email links so that they reflect the current environment rather than hard-coded links to the live system.