|  | 
| [VB.NET] |  | 
| Sub Logon
									(NotificationID As String, EMailSrc As String, Password As String) | 
|  | 
| NotificationID | 
| Notification ID | 
| EMailSrc | 
| Sender MSN Client Address | 
| Password | 
| Sender MSN Client Password | 
| | VB.NET 
									Example | Switch to language:
										[C#] | 
 | 
|  | 'Create personalizer object and Session object | 
|  | Dim pers As New PersonalizerRef.Personalizer() | 
|  | Dim sess As New SessionRef.Session() | 
|  | Dim SessionID As 
					String = "" | 
|  | Try | 
|  | SessionID = pers.CreateSession("LogonName", "Password") | 
|  | 'Create MSN notification | 
|  | Dim objMSN As 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 e As Exception | 
|  | 'Print exception message e.Message | 
|  | sess.Release(SessionID) | 
|  | End Try |