SPVirtualServer.UpdateMailSettings Method
NOTE: This API is now obsolete.
Obsolete. Updates settings on the SMTP server that are used for e-mail on the virtual server.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", _
False)> _
Public Sub UpdateMailSettings ( _
strOutboundSMTPServer As String, _
strFromAddress As String, _
strReplyToAddress As String, _
nCodePage As Integer _
)
'Usage
Dim instance As SPVirtualServer
Dim strOutboundSMTPServer As String
Dim strFromAddress As String
Dim strReplyToAddress As String
Dim nCodePage As Integer
instance.UpdateMailSettings(strOutboundSMTPServer, _
strFromAddress, strReplyToAddress, _
nCodePage)
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",
false)]
public void UpdateMailSettings(
string strOutboundSMTPServer,
string strFromAddress,
string strReplyToAddress,
int nCodePage
)
Parameters
strOutboundSMTPServer
Type: System.StringA string that specifies the SMTP server to use for outbound e-mail.
strFromAddress
Type: System.StringA string that contains the From address that is used for e-mail from the server.
strReplyToAddress
Type: System.StringA string that contains the Reply To address that is used for e-mail to the server.
nCodePage
Type: System.Int32A 32-bit integer that specifies the language code page that is used for e-mail.