This relied on KEmailSettings, which hasn't been filled anymore since decades, so this will always fail anyway.