Read email address of a SharePoint list/library programmatically

You can try SPList.EmailAlias property of a SPList object. It will return the email adress of the list as string

SPSite site = new SPSite("http://yoursite");
SPWeb web = site.OpenWeb();
SPList list = web.Lists[listGuid];
string emailAddress = list.EmailAlias;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.