|
Send
(String TargetUIN, String Text)
throw Exception
|
|
TargetUIN |
Target UIN number |
Text |
Message Text |
|
| Personalizer pers = null; |
| Session sess = null; |
| try{ |
| //Create personalizer object and Session object |
| pers = new Personalizer(); |
| sess = pers.CreateSession("LogonName", "Password"); |
| //Create MSN Notification |
| MSN objMSN = sess.CreateMSNNotification(); |
| objMSN.Logon("012345", "Password"); |
| objMSN.Send("target@hotmail.com", "This is MSN Notification Message"); |
| objMSN.Disconnect(); |
| objMSN.Release(); |
| sess.Release(); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| System.out.println(e.Message); |
| sess.Release(); |
| } |