SPWebApplication.UpdateMailSettings 方法

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub UpdateMailSettings ( _
    strOutboundSMTPServer As String, _
    strFromAddress As String, _
    strReplyToAddress As String, _
    nCodePage As Integer _
)
用法
Dim instance As SPWebApplication
Dim strOutboundSMTPServer As String
Dim strFromAddress As String
Dim strReplyToAddress As String
Dim nCodePage As Integer

instance.UpdateMailSettings(strOutboundSMTPServer, _
    strFromAddress, strReplyToAddress, _
    nCodePage)
public void UpdateMailSettings(
    string strOutboundSMTPServer,
    string strFromAddress,
    string strReplyToAddress,
    int nCodePage
)

参数

  • strOutboundSMTPServer
    类型:System.String

    一个字符串,包含在出站 SMTP 服务器的名称。

  • strFromAddress
    类型:System.String

    一个字符串,包含"发件人"地址用于邮件。

  • strReplyToAddress
    类型:System.String

    一个字符串,包含出现在由SharePoint Foundation生成的消息的回复地址。

  • nCodePage
    类型:System.Int32

    一个字符串,指定要使用的出站邮件的代码页。

另请参阅

引用

SPWebApplication 类

SPWebApplication 成员

Microsoft.SharePoint.Administration 命名空间