Condividi tramite


SPWebApplication.UpdateMailSettings Method

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

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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

Microsoft.SharePoint.Administration Namespace