Dependency Injection in C#

Dependency Injection (DI) in C# is a design pattern that allows the separation of an object’s creation from its usage, by passing its dependencies as parameters, instead of having the object create them itself. In simpler terms, Dependency Injection is a technique that enables objects to get the dependencies they need from external sources (such … Read more

Send Email with Gmail SMTP using C#

Today we will be using c# to send email with Gmail SMTP. Gmail is probably the most used email service in the world. SMTP stands for Simple mail transfer protocol. This protocol is used to send emails. We will be creating a console application to send the mails. So lets start step by step. Step … Read more