共用方式為


SPGlobalAdmin.UpdateMailSettings method

NOTE: This API is now obsolete.

使用SPAdministrationWebApplication類別之UpdateMailSettings方法來更新預設郵件設定而。(在Windows SharePoint Services 2.0UpdateMailSettings方法更新指定的值,設定資料庫中的預設電子郵件設定和維護回溯相容性。)

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

Syntax

'宣告
<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 _
)
'用途
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
)

參數

  • strOutboundSMTPServer
    Type: System.String

    字串,識別的外寄郵件的簡易郵件傳送通訊協定 (SMTP) 伺服器。

  • strFromAddress
    Type: System.String

    內含之伺服器的 From 地址的字串。

  • strReplyToAddress
    Type: System.String

    內含伺服器回覆地址的字串。

  • nCodePage
    Type: System.Int32

    指定要用於電子郵件訊息的語言字碼頁的整數。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace