MSNP-SHARP how to send an hello message to an user that changed status from offline to online

Posted by Constantine on Stack Overflow See other posts from Stack Overflow or by Constantine
Published on 2010-05-12T20:10:04Z Indexed on 2010/05/12 20:14 UTC
Read the original article Hit count: 290

Filed under:
|
|
|

I tried in this way. I subscribed to that event who control the user status, its announcing me that user in Online. my code is:

void Nameserver_ContactOnline(object sender, ContactEventArgs e)
{
        Talk = messenger.CreateConversation();
        Talk.Invite(e.Contact.Mail,ClientType.PassportMember);
        Talk.SendTextMessage(new TextMessage(Msg));
        Talk.End();
        LogEvent("Contact online " + e.Contact.Name.ToString() + " " + e.Contact.Mail.ToString());
}

someone can give me a hint ? maybe i do something wrong because message wasn't sent. thanks.

© Stack Overflow or respective owner

Related posts about msnpsharp

Related posts about c#