Posts

Showing posts with the label Email

SPUtility.SendEmail truncates your message body

Use this instead to send longer emails from SharePoint: MailMessage message = new MailMessage(); message.From = new MailAddress(list.ParentWeb.Site.WebApplication.OutboundMailSenderAddress); message.To.Add( new MailAddress("email@email.com)); message.Subject = "Subject"; message.Body = "Body"; SmtpClient smtpClient = new SmtpClient(SPContext.Current.Site.WebApplication.OutboundMailServiceInstance.Server.Address); smtpClient.Send(message);

Unchecking the 'send email' option when adding users to a group.

Most of the time we don't want to send extra emails to people so we wanted to uncheck the send email checkbox from the New User form. Here's how: Repeat this process for each front end-web server: Open C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\AclInv.aspx Find the control with ID="chkSendEmail" change the Checked="True" attribute of this control to Checked="False". No IISRESET is required