|
[C#] | |
String
GetCc
(String NotificationID)
|
|
NotificationID |
Notification ID |
|
Carbon Copy string value |
|
| //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 Mail notification proxy object |
| MailRef.Mail objMail = new MailRef.Mail()
; |
| //Create server notification object |
| string MailNotifID = sess.CreateMailNotification(SessionID); |
| //set required parameters |
| objMail.SetTo(MailNotifID, "abonent@somebody.com")
;
//set destination address |
| objMail.SetCc(MailNotifID, "abonent2@somebody.com"); |
| objMail.SetBcc(MailNotifID, "abonent3@somebody.com"); |
| objMail.Send(MailNotifID); |
| // Retrieve message properties |
| Console.WriteLine(objMail.GetCc(MailNotifID)); |
| Console.WriteLine(objMail.GetBcc(MailNotifID)); |
| objMail.Release(MailNotifID); |
| sess.Release(SessionID); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| sess.Release(SessionID); |
| } |