SPWebApplication.PublicFolderRootUrl property
SharePoint 2013
NOTE: This API is now obsolete.
Gets or sets the root of the public folder to which the Web application listens for document library e-mail inserts.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)