MailMessage message = new MailMessage();
message.From = new MailAddress(list.ParentWeb.Site.WebApplication.OutboundMailSenderAddress);
message.Subject = "Subject";
message.Body = "Body";
SmtpClient smtpClient = new SmtpClient(SPContext.Current.Site.WebApplication.OutboundMailServiceInstance.Server.Address);
Thursday, September 24, 2009
SPUtility.SendEmail truncates your message body
Use this instead to send longer emails from SharePoint:
I had a customer who accidentally synched a (very large) SP Online library and then decided they didn't want the files on their PC anymo...
I was working on a STSDev project which deployed a feature with a feature receiver. I had the feature working without the FeatureReceiver b...
Until today I had never received this error when trying to connect to SPO. If you get this error there's a good chance it's relat...
If you want to use the SPWeb.Files.Add() method that allows you to pass in a HashTable of metadata for the document, you will need to use th...