September 15, 2012

Software Development Life Cycle


 Software Development Life Cycle (SDLC) also called as the System Development Life Cycle, is a methodology followed while developing or maintaining a software application. These cycles includes all phases of development of software i.e. from its initial stage to delivery and live. Stages of a process may vary company to company policies. To develop application software, it is very important to analyze its risk factors and scope of the project, and to deliver a logical concept into real world application. Off course you need a suitable framework that can manage every stage of development. SDLC is a framework that defines the activities performed at each stage of software service project.

Types of SDLC:
  1. Waterfall Model
  2. V-Shaped Model
  3. Incremental Model
  4. Spiral model
  5. Rapid Application Model (RAD)
  6. Dynamic System Development Method (DSDM)
  7. Adaptive SDLC
  8. Tailored SDLC Model


May 19, 2012

Send SMTP mail using C# & .NET

Sending mail via web application or service, is now a days are very common. Most of user demands for email notifications or similar feature in their applications. There numerous of scripts are available to send mail. If you are using C# and .NET framework, and you want a code behind script to customise or create a dynamic mail using C# classes, you can use the following lines of code to generate and send SMTP mail.
using System.Net.Mail;


MailMessage mail = new MailMessage();
mail.To.Add("to-mail@gmail.com");
mail.From = new MailAddress("from@gmail.com");
mail.Subject = "Test Email";
string Body = "
Hello Navin,
Your online transaction id and password are as:
User Name: user-name@gmail.com
Password: user-name-password
";
mail.Body = Body;
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.your-site.com";
smtp.Credentials = new System.Net.NetworkCredential("to-mail@gmail.com", "");
smtp.EnableSsl = true;
//smtp.Host = ConfigurationManager.AppSettings["SMTP"];
smtp.Send(mail);