Adding logging for when email is sent.
Adding tokens to logs.