save mail and add log