The following code, written in the .net core 2 environment, works in the windows environment but not in the linux environment. Exception: Failure sending mail. InnerExcepiton: StackTrace: Linux: Ubuntu 16.04.3 LTS This is a console app. Why is not working in linux environment? Answer I thought it was a code error because of the error I had, but it was