Hi,
I am trying to send an email with an attachment once a new document is added to a document library in sharepoint 2010. I created an event receiver in VS2010 and have following code so far but I am getting an error (shown with the comments below) and code
won't compile. I am trying to use SPListItem the BuildMailMessage method and passing a document library name, not sure if that is the issue.
If some one has an idea then please let me know. Thanks
public override void ItemAdded(SPItemEventProperties properties)
{
SPFolder mylibrary = properties.Web.Folders["My Document Library"];
properties.Web.AllowUnsafeUpdates = true;
Smt ...
Go to the complete details ...