Send an HTML email with an embedded image and a plain text message

C# Code: MailMessage  msg = new  MailMessage(“SENDER EMAIL”, “RECEIVER EMAIL”); msg.Subject = “This is my first email through program”; msg.IsBodyHtml = true; AlternateView View ; LinkedResource resource; SmtpClient client = new SmtpClient() ; StringBuilder msgText = new StringBuilder(); msgText.Append(“<p>Hi there,<p>”); msgText.Append(“<p>Welcome to the new world programming.<p><br>”); msgText.Append(“<p>Thanks<p>”); msgText.Append(“<p>With regards,ASHISH<p><br>”); msgText.Append(“<img src=cid:Image1 />”); //create an alternate… Read More Send an HTML email with an embedded image and a plain text message

ASP.NET MVC 2 Custom Membership Provider Tutorial – Part 1

In this tutorial I will show how to implement Custom Membership Provider in ASP.NET MVC 2 Web Application using Microsoft Visual Web Developer 2010 Express. The tutorial will consist of few parts (not sure how many at this stage) and I will try to cover custom implementations of membership, role and profile providers. I will… Read More ASP.NET MVC 2 Custom Membership Provider Tutorial – Part 1

Steps to install ASP.NET Membership Services database

SQL Membership provider is mainly using for storing and retrieving user credentials for an application. This will avoid lengthy codes for user authentication from applications. There are mainly two types of Membership providers are there, SQLMembershipProvider and ActiveDirectoryMembershipProvider. For adding users, Microsoft providing a setup wizard named ASP.NET SQL Server Setup Wizard. Here I am… Read More Steps to install ASP.NET Membership Services database