SPGlobalAdmin.UpdateMailSettings Method
NOTE: This API is now obsolete.
Use the UpdateMailSettings method of the SPAdministrationWebApplication class to update default mail settings instead. (In Windows SharePoint Services 2.0 the UpdateMailSettings method updated the default e-mail settings in the configuration database with the specified values, and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().", _
False)> _
Public Sub UpdateMailSettings ( _
strOutboundSMTPServer As String, _
strFromAddress As String, _
strReplyToAddress As String, _
nCodePage As Integer _
)
'Usage
Dim instance As SPGlobalAdmin
Dim strOutboundSMTPServer As String
Dim strFromAddress As String
Dim strReplyToAddress As String
Dim nCodePage As Integer
instance.UpdateMailSettings(strOutboundSMTPServer, _
strFromAddress, strReplyToAddress, _
nCodePage)
[ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().",
false)]
public void UpdateMailSettings(
string strOutboundSMTPServer,
string strFromAddress,
string strReplyToAddress,
int nCodePage
)
Parameters
strOutboundSMTPServer
Type: System.StringA string that identifies the Simple Mail Transfer Protocol (SMTP) server for outbound mail.
strFromAddress
Type: System.StringA string that contains the From address for the server.
strReplyToAddress
Type: System.StringA string that contains the Reply To address for the server.
nCodePage
Type: System.Int32An integer that specifies the language code page to use for e-mail messages.