Posts

Showing posts from January, 2016

Send Email with multiple attachments in SharePoint List

Image
There is no direct implementation for this functionality and can't send attachments in SharePoint Designer Workflow so I have implemented the Custom Event Receiver for SharePoint List and added this code under "ItemAdded" 1) Create SharePoint Custom List (example: EmailNotificationLog) 1) Create Farm level project and select Event Receiver Project in VS 2010/2012 and name it (I used the name to "SendEmailwithAttachment") 2) Open "Elements.xml" file and change Receivers tag with below  <Receivers ListUrl="Lists/EmailNotificationLog" Scope ="Web"> 3) Add Microsoft.SharePoint reference to project 4) Open .cs file and add the below code under ItemAdded using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow; using System.Net.Mail; namespace SendEmailwithAttachment.SendEmailwithAttachmentEventReceiver { public class Sen...