SPWebApplication.UpdateMailSettings method
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.String包含的外送 SMTP 伺服器名稱的字串。
strFromAddress
Type: System.String內含的"from"地址的郵件使用的字串。
strReplyToAddress
Type: System.String內含SharePoint Foundation所產生的訊息中顯示為回覆地址的字串。
nCodePage
Type: System.Int32字串,指定要使用的外寄郵件的字碼頁。