Shoutbox

Get e-mail adress of contact - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Get e-mail adress of contact (/showthread.php?tid=68951)

Get e-mail adress of contact by albert on 11-29-2006 at 04:21 AM

Hey, I never thought I'd be posting here. :| Yet, I have a small idea which I'm trying to get to work..

I need to get my contact's email (the whole list).

I looked throughout the documentation.. I was able to find something that has to do with email and network..

code:
[string] Email;

and

code:
[enum] Network;

Yet I can't seem to find how to use it..

What is the string suposed to represent.. A string that I created? For example

code:

var NameOfEmailOne ;
NameOfEmailOne = Email ;



Because that don't seem to work very well..
RE: Get e-mail adress of contact by deAd on 11-29-2006 at 04:25 AM

This code is straight from the documentation. It'll loop through all the contacts and trace their emails to the debug window:

code:
Debug.Trace("Contacts in the user's contact list:");
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
    var Contact = e.item();
    Debug.Trace(" " + Contact.Email);
}

RE: Get e-mail adress of contact by zach on 11-29-2006 at 04:41 AM

You don't need a script for this. Just export your contact list and then open the .ctt file with notepad.
Replace all <contact type="1"> with " "  and </contact>.
Delete:
<?xml version="1.0"?>
<messenger>
  <service name=".NET Messenger Service">
    <contactlist>
and
    </contactlist>
  </service>
</messenger>

There you have all your contacts emails.


RE: Get e-mail adress of contact by Felu on 11-29-2006 at 05:00 AM

quote:
Originally posted by zach
Replace all <contact type="1"> with " "  and .
Contact type 32 signify Yahoo network contacts and there are some others (like @microsoft.com, etc) which i don't remember as of now [Image: msn_tongue.gif]. Its better to the code given by deAd.
RE: RE: Get e-mail adress of contact by deAd on 11-29-2006 at 05:00 AM

quote:
Originally posted by zach
You don't need a script for this. Just export your contact list and then open the .ctt file with notepad.
Replace all <contact type="1"> with " "  and </contact>.
Delete:
<?xml version="1.0"?>
<messenger>
  <service name=".NET Messenger Service">
    <contactlist>
and
    </contactlist>
  </service>
</messenger>

There you have all your contacts emails.

I'd think he wanted it for a script?

Also, the Network property just tells you if the contact is using Yahoo! or WLM.