共用方式為


SPVirtualServer.UpdateMailSettings method

NOTE: This API is now obsolete.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<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
    Type: System.String

    字串,指定要用於外送電子郵件的 SMTP 伺服器。

  • strFromAddress
    Type: System.String

    包含用於從伺服器的電子郵件的來源位址字串。

  • strReplyToAddress
    Type: System.String

    包含用於伺服器的電子郵件回覆地址的字串。

  • nCodePage
    Type: System.Int32

    32 位元整數,會指定用於電子郵件的語言字碼頁。

請參閱

參照

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace