Adds configurable SMTP logging

[#80346878]