共用方式為


UpdateMailSettings Method

The UpdateMailSettings method of the SPGlobalAdmin class updates the default e-mail settings in the configuration database with the specified values.

Parameters

strOutboundSMTPServer   A string that identifies the Simple Mail Transfer Protocol (SMTP) server for outbound mail.

strFromAddress   A string that contains the From address for the server.

strReplyToAddress   A string that contains the Reply To address for the server.

nCodePage   An integer that specifies the language code page to use for e-mail messages.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security