|
[VB.NET] | |
Function GetCc
(NotificationID As String)
As
String |
|
NotificationID |
Notification ID |
|
Carbon Copy string value |
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 Mail notification proxy object |
| Dim objMail As New MailRef.Mail()
|
| 'Create server notification object |
| Dim MailNotifID As
String = 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 e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |