Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Email property of the SPUser class gets or sets the e-mail address of the user.
Property Value
A string that contains the e-mail address.
Remarks
To modify the e-mail address for a user by setting the value of the Email property, call the Update method to effect the changes in the database.
Example
The following code example modifies the e-mail address for a specified user object.
This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security