SharePoint Dragons

Nikander & Margriet on SharePoint

Monthly Archives: May 2012

SharePoint 2010 Best Practice Overview Page

The SharePoint 2010 Best Practice Overview page just underwent a major overhaul and here’s the result:

SPUtility.SendEmail() limit

The SPUtility.SendEmail() method has a limit of the max number of characters on a single line: 2048. However, you can divide the message body in chunks of several lines, thereby circumventing the maximum: Alternatively, you can send emails directly, using code like this:

System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new System.Net.Mail.MailAddress(objWeb.Site.WebApplication.OutboundMailSenderAddress);
message.To.Add(new System.Net.Mail.MailAddress(objTcnlSite.AcmaEmail));
message.Subject = Subject;
message.Body = Body;
message.IsBodyHtml = true;
System.Net.Mail.SmtpClient smtpClient = new System.Net.Mail.SmtpClient(objWeb.Site.WebApplication.OutboundMailServiceInstance.Server.Address);
smtpClient.UseDefaultCredentials = true;
smtpClient = null;

Wikis just may be your best bet

Margriet is a regular TechNet Wiki contributor. Read more about how Wikis can help you placing the right bets in SharePoint projects on Margriet’s first post as a Wiki Ninja on the Official Blog of TechNet Wiki:

Wiki Community Win

Asset vs Picture library revised

The Asset vs Picture library TechNet Wiki article has been revised. You can find the latest version here:

Working with large files

Sometimes we come across an article we’ve written in the past and think: “Hey, this is quite good and still applies!” This is the case with , it discusses tips and tricks for working with large files.

ULS in logging database

You can use the logging database to store ULS logs, check See,%20how%20they%20work for info on how it is stored. Consolidated storage and access to the ULS is a huge benefit, and also makes querying it a lot easier. In addition, the logging db also contains other useful info such as DMVs and performance counters:

Farm backup

We really liked the following discussion about farm backups: Btw, someone must have misread a part of the question, as a backup of 5tb in 15-20 min is what we’d call “optimistic”!

TechNET Wiki page Performance


The Debug Diagnostic Tool (v1.2) is a tool that assists in troubleshooting issues such as slow performance and memory leaks. It’s created by MS and also contains a dedicated SharePoint Analysis Script. You can download it at