Configure Email Provider(SMTP/GMail) using Provider Design Pattern

Created example of EmailProvider selection among different email sender sources like Gmail, SMTP. We can dynamically change Email provider.

We can dynamically set Email provider just by updating web.config settings. By using ASP.NET provider design pattern, here I have created a sample class library to manage email sending functionality using different email providers.

Please refer to the attached class library "Provider.EmailSender" which manages email sending functionality like dynamically set provider also attached related provider libraries like Provider.Email.Gmail and Provider.Email.SMTP.

Benefits
1.Switching email providers is much easier.
2.Changing the source of data for your application from the current database to any database, whether SQL Server, Oracle, XML, or other.

Last edited Dec 31, 2013 at 5:23 AM by Kishanzunjare, version 7