uncommented email logging routine