I have an issue where emails are sent out correctly when executed in unit testing in Visual Studio.
However, the exact same piece of code and configuration does not work