Add doc to the email links. Log more thoroughly.