Showing posts with label SPContext. Show all posts
Showing posts with label SPContext. Show all posts

Thursday, May 2, 2013

Access The Outbound SMTP Server Address From Code

Use following one liner code to get the Outbound SMTP Server Address:

SPContext.Current.Web.Site.WebApplication.OutboundMailServiceInstance.Server.Address


Contact Me or Post comments for any technical help related with SharePoint 2010.