Corrected email logging funcs