What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get e-mail adress of contact

Get e-mail adress of contact
Author: Message:
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
O.P. Get e-mail adress of contact
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..
11-29-2006 04:21 AM
Profile E-Mail PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Get e-mail adress of contact
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);
}
11-29-2006 04:25 AM
Profile PM Find Quote Report
zach
Senior Member
****

Avatar

Posts: 556
Reputation: 18
33 / Male / Flag
Joined: Jan 2005
Status: Away
RE: Get e-mail adress of contact
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.
11-29-2006 04:41 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Get e-mail adress of contact
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.

This post was edited on 11-29-2006 at 05:02 AM by Felu.
11-29-2006 05:00 AM
Profile E-Mail PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: Get e-mail adress of contact
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.
11-29-2006 05:00 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On