Posts

Showing posts from May, 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.

Features of MS SQL Server 2012

Microsoft has introduced SQL Server 2012 to the world and it's time for IT professionals to start to come to speed on what's new in this highly anticipated version of SQL Server. This article posted by Joey D'Antoni in his article that I liked and wish to share with you. 1. AlwaysOn Availability Groups -- This feature takes database mirroring to a whole new level. With AlwaysOn, users will be able to fail over multiple databases in groups instead of individually. Also, secondary copies will be readable, and can be used for database backups. The big win is that your DR environment no longer needs to sit idle. 2. Windows Server Core Support -- If you don't know what Windows Server Core is, you may want to come up to speed before Windows 8 (MS is making a push back to the command line for server products). Core is the GUI-less version of Windows that uses DOS and PowerShell for user interaction. It has a much lower footprint (50% less memory and disk spa