Mail


SetCc

Sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message

Call Method
[C#]
    SetCc (String NotificationID, String Cc)
Parameters
   NotificationID
         Notification ID
   Cc
         Carbon Copy Address
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 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);
  }