MSN


Send

Send text message to destinaion client

Call Method
[C#]
    Send (String NotificationID, String TargetUIN, String Text)
Parameters
   NotificationID
         Notification ID
   TargetUIN
         Target MSN Client Address
   Text
         Message Text
C# Example Switch to language: [VB.NET]
  //Create personalizer object and Session object
  PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer() ;
  SessionRef.Session sess = new SessionRef.Session() ;
  string SessionID = "";
  try{
      SessionID = pers.CreateSession("LogonName", "Password");
      //Create MSN notification
      MSNRef.MSN objMSN = new MSNRef.MSN() ;
      //Create server notification object
      MSNNotifID = sess.CreateMSNNotification(SessionID);
      objMSN.Logon(MSNNotifID, "012345", "Password");
      objMSN.Send(MSNNotifID, "target@hotmail.com", "This is MSN Notification Message");
      objMSN.Disconnect(MSNNotifID);
      objMSN.Release(MSNNotifID);
      sess.Release(SessionID);
  }
  catch(Exception e){
      //Print exception message e.Message
      sess.Release(SessionID);
  }