SPOutboundMailServiceInstance Constructor (String, SPServer)

Initializes a new instance of the SPOutboundMailServiceInstance class based on the specified name and server.

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    server As SPServer _
)
'Usage
Dim name As String
Dim server As SPServer

Dim instance As New SPOutboundMailServiceInstance(name, server)
public SPOutboundMailServiceInstance(
    string name,
    SPServer server
)

Parameters

  • name
    Type: System.String

    A string that contains the name of the new service.

Remarks

For information about how to set up the SMTP server, see https://technet.microsoft.com/en-us/library/cc288949.aspx.

See Also

Reference

SPOutboundMailServiceInstance Class

SPOutboundMailServiceInstance Members

SPOutboundMailServiceInstance Overload

Microsoft.SharePoint.Administration Namespace