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.StringA string that contains the name of the new service.
server
Type: Microsoft.SharePoint.Administration.SPServerAn SPServer object that represents the server containing an SMTP mail server that is configured to relay e-mail from Microsoft SharePoint Foundation.
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