SPOutboundMailService Class

Represents a Simple Mail Transfer Protocol (SMTP) service that is used in Microsoft SharePoint Foundation to send outbound mail.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPOutboundMailService : SPService

To return the parent service of an outbound e-mail service instance, use the inherited Service property of the SPOutboundMailServiceInstance class.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.