次の方法で共有


SPWebApplication.UpdateMailSettings method (String, String, String, Int32)

Updates the e-mail settings that are used when SharePoint Foundation sends email.

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

Syntax

'Declaration
Public Sub UpdateMailSettings ( _
    strOutboundSMTPServer As String, _
    strFromAddress As String, _
    strReplyToAddress As String, _
    nCodePage As Integer _
)
'Usage
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
)

Parameters

  • strOutboundSMTPServer
    Type: System.String

    A string that contains the name of the outbound SMTP server.

  • strFromAddress
    Type: System.String

    A string that contains the "from" address to use for messages.

  • strReplyToAddress
    Type: System.String

    A string that contains the reply address that appears in messages generated by SharePoint Foundation.

  • nCodePage
    Type: System.Int32

    A string that specifies the code page to use for outbound messages.

See also

Reference

SPWebApplication class

SPWebApplication members

UpdateMailSettings overload

Microsoft.SharePoint.Administration namespace