次の方法で共有


SPGlobalAdmin.MailFromAddress property

NOTE: This API is now obsolete.

Use the UpdateMailSettings method of the SPAdministrationWebApplication class to update default mail settings instead. (In Windows SharePoint Services 2.0, the MailFromAddress property got the From address used for e-mail in the SharePoint Foundation deployment, and is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().",  _
    False)> _
Public ReadOnly Property MailFromAddress As String
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As String

value = instance.MailFromAddress
[ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().", 
    false)]
public string MailFromAddress { get; }

Property value

Type: System.String
A string that contains the From address.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace