The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
		
			|  | 
			
		
			|  | 
				
					| User's email address  Posted: 23 Mar 06 11:46 AM
 |  
					| fiogf49gjkf0dWhat is the best way to programmatically obtain a user's email address? |  
					|  |  | 
			|  | 
				
					| Re: User's email address  Posted: 23 Mar 06 11:54 AM
 |  
					| fiogf49gjkf0dFunction GetUserEmail() Dim sUserID
 sUserID = Application.BasicFunctions.CurrentUserID
 GetUserEmail = Application.Users.Item(sUserID).Email
 End Function
 
 You can change the function to pass in the userid for specific user if you wanted, but this should give you the idea.
 
 Ted
 By the way this only works with versions 6.2 and above.
 |  
					|  |  | 
			|  | 
				
					| Re: User's email address  Posted: 23 Mar 06 12:25 PM
 |  
					| fiogf49gjkf0dThanks a lot, Ted.  We use v6.2, and you gave me a push in the right direction.  I really appreciate your help! |  
					|  |  | 
			|  | 
				
					| Re: User's email address  Posted: 23 Mar 06 3:10 PM
 |  
					| fiogf49gjkf0dIf you need a version for 6.1 or below the email is stored in a table that can be read by a simple SQL statement. "Select email from userinfo where userid = '$USERID$'" The application.basicfunction calls basically do this for you. |  
					|  |  | 
			|  |