Add logging for emails