Example of logging(In file user.cs). Correction file sendmail.cs