Skip to main content

Posts

Showing posts from November, 2006

This Microsoft-Novell partnership's not all it's cracked up to be

This Microsoft-Novell partnership's not all it's cracked up to be by ZDNet 's Mary Jo Foley -- It's now November 21, and both Microsoft and Novell are still spending an inordinate amount of energy trying to convince nonbelievers that their intentions in forming their interoperability alliance on November 2 were as altruistically pro-customer as they originally claimed.

Sending mail by asp.net 2.0

Sending mail by asp.net 2.0 In ASP.NET 2.0, Microsoft deprecated the System.Web.Mail namespace and replaced it with System.Net.Mail. The new library introduces some new features, but it also includes some bugs in how mail is sent. Before discussing some of these in detail, let's go through some code sample (which assumes you've added a using System.Net.Mail at the top of the file): MailMessage msg = new MailMessage(); msg.From = new MailAddress("address@domain.com", "Person's Name"); msg.To.Add(new MailAddress("destination@domain.com", "Addressee's Name"); msg.To.Add(new MailAddress("destination2@domain.com", Addressee 2's Name"); msg.Subject = "Message Subject"; msg.Body = "Mail body content"; msg.IsBodyHtml = true; msg.Priority = MailPriority.High; SmtpClient c = new SmtpClient("mailserver.domain.com"); c.Send(msg); Is'n it so easy.