Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/Email: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:08 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/Email.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.EMail Property (Restricted) = | __NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.EMail Property (Restricted) = |
Revision as of 22:46, 12 August 2022
<a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.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.