C# / .NET Program

C# Abstract Keyword

Abstract is a Keyword & Access Modifier similar to public, private, protected. As name implies Abstract keyword is an template like modifier. It is an incomplete method, class, properties, indexes and events. Which should be completed in derived class. Abstract class are always base class. The members¬†in the abstract class to be implement by the […]

C# / .NET Program Tutorial

C# (ASP.NET) Program for Sending a Email with Attachment (with explanation)

Read my ¬†previous post “sending email in C#” to understand the basic of STMP. Now, we are going to send a email with attachment. The attachment may be any format. Snippet for creating Attachment object is Attachment attach = new Attachment(string filepath); Access this attachment in MailMessage Object mailMsg.Attachments.Add(attach); Full Program: using System; using System.Net; […]