Added the missing logging by email feature.