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.

1 comment:

Anonymous said...

Good post, it helped us. Thanks.