Welcome to Bangladesh Microsoft Technology Community Sign in | Join | Help

ASP.NET MVC : NerdDinner ASP.NET MVC Tutorial

Over the last few months Scott Hanselman, Rob Conery, and Phil Haack have been writing an ASP.NET MVC book for wrox. Scott Guthrie, Corporate Vice President in the Microsoft Developer Division has contributed the first chapter (free) of the book which is a 185 page end-to-end tutorial that walks-through building a small, but complete, ASP.NET MVC application from scratch. You can get the complete news here.

Download Links

I hope this will help.

Thank You

posted by asirul | 0 Comments

ASP.NET MVC : Some Useful Links

Recently I have been working on a project, built on top of ASP.NET MVC Framework. The useful Posts of Scott Guthrie on this subject-matter helped me a lot in my understanding of the basic concept of ASP.NET MVC framework. I wanted to share these links with everyone.

 

I hope this will help.

Thank You

posted by asirul | 0 Comments

Sending Email with System.Net.Mail

.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. Here is a simple snippet of how to send an email message from “sender@server.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets)

MailMessage message = new MailMessage();message.From = new MailAddress("sender@server.com");

 
message.To.Add(new MailAddress("recipient1@server.com"));


message.CC.Add(new MailAddress("copy@server.com"));
message.Subject = "This is the subject";
message.Body = "This is the content";

 
SmtpClient client = new SmtpClient();

client.Send(message);

For Asp.Net System.Net.Mail reads SMTP configuration data from web.config.Here is example

<system.net>

    <mailSettings>

      <smtp from="test@server.com">

        <network host="smtpserver" port="25" userName="username" password="pass" defaultCredentials="true" />

      </smtp>

    </mailSettings>

</system.net>



posted by asirul | 0 Comments