Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/Email
Jump to navigation
Jump to search
User.EMail Property (Restricted)
Requires PassportSiteID permission. Contains a string with the e-mail address of the user. This property is read-only.
VBScript Syntax
set myUsers=external.Users set myLocalUser = myUsers.Me document.write( myLocalUser.EMail )
JavaScript Syntax
var myUsers = window.external.Users; var myLocalUser = myUsers.Me; document.write( myLocalUser.EMail );
Property Value
Contains a string with the e-mail address of the user, as provided by the Microsoft® .NET Passport Unique ID (PUID).
Example
To print the e-mail address of the local user in the body of the document, set a span of text to the value of Users.Me.EMail, as shown in the following example.
Script:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Print my Passport e-mail address in the body of the document. document.all.whatsmyemail.innerhtml=myLocalUser.EMail; </script> //-->
Document body:
<!-- Assign a new value to innerhtml of whatsmyemail to replace the empty space below. --> Send mail to '<span id="whatsmyemail"> </span>'.
Remarks
Use of this property is restricted by the PassportSiteID flag. An application that does not possess this flag is not able to read this information from MSN® Messenger. No error is thrown, and a blank value is returned.