Share via


GetLoginNameFromEmail Method

The GetLoginNameFromEmail method of the SPUtility class returns the domain user account of the user based on the specified site collection and e-mail address.

Parameters

site   A Microsoft.SharePoint.SPSite object that represents the site to which the user belongs.

email   A string that contains the e-mail address of the user.

Return Value

A string that contains the domain user account.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security