Skip to main content

Posts

Asp.net send email using c#

Introduction: In this article I will explain how to send email using asp.net. Description: In Realtime we will use Gmail, yahoo, Hotmail etc to send mails to particular user here I will show to how to implement mail sending concept in asp.net. To implement mail concept in asp.net first we need to add following reference to our applicationSystem.Web.Mail namespace  What is System.Web.Mail System.Web.Mail is a namespace which contains classes that enable us to construct and send messages using the CDOSYS (Collaboration Data Objects for Windows 2000) message component. The mail message is delivered either through the SMTP mail service built into Microsoft Windows 2000 or through an arbitrary SMTP server. How we can get this reference (System.Web.Mail)  We need to add System.web.dll reference to our application for that follow below steps  a)  On the Project menu, click Add Reference. b)    On the .NET tab, locate System.Web.dll, and the...

Object Oriented Programming in C#.Net

Question 1: What is Object Oriented Programming? Answer :  "Definition" Object Oriented Programming(OOP) provides a way to make programs flexible by providing memory for both Data and Function. So, you can consider an Object as part of memory which is holding the data and operations which can be used to access that data. As Memory partitions are not dependent so objects can be used in differentprograms without making any changes in them. Some Examples of OOP Languages are C#, VB.NET, JAVA, and C++. Features of Object Oriented Programming The features of OOP are: Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism Dynamic Binding Characteristics of OOP Data gets more importance than Procedure. Programs are divided into objects. Objects are characterized using Data Structures. Data Structures hold the functions which are operating on the data of an object. External Functions can't access the Data as they are made hidden from...