SPWebApplication.OutboundMailServiceInstance property
SharePoint 2013
Gets or sets the SMTP e-mail service used for sending e-mail.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: Microsoft.SharePoint.Administration.SPOutboundMailServiceInstanceAn SPOutboundMailServiceInstance object that represents the SMTP e-mail service.