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