SPVirtualServer.UpdateMailSettings 方法
请注意:此 API 现在已过时。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", _
False)> _
Public Sub UpdateMailSettings ( _
strOutboundSMTPServer As String, _
strFromAddress As String, _
strReplyToAddress As String, _
nCodePage As Integer _
)
用法
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
)
参数
strOutboundSMTPServer
类型:System.String一个字符串,指定要使用的出站电子邮件的 SMTP 服务器。
strFromAddress
类型:System.String一个字符串,包含用于从服务器的电子邮件的源地址。
strReplyToAddress
类型:System.String一个字符串,包含用于向服务器的电子邮件的答复地址。
nCodePage
类型:System.Int3232 位整数,它指定用于电子邮件的语言代码页。