This blog defines SMTP detail programmatically in my application without using Web.Config items.
Write an article and earn +1,000 SHARP when it is approved.