As you're not keeping the created instance of `SmtpHostSettings` around, this is a factory rather than a provider.