共用方式為


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)
Available in Sandboxed Solutions: No

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