|
String
GetCc
()
throw Exception
|
|
Carbon Copy String value |
|
| Personalizer pers = null; |
| Session sess = null; |
| try{ |
| //Create personalizer object and Session object |
| pers = new Personalizer(); |
| sess = pers.CreateSession("LogonName", "Password"); |
| //Create Mail Notification |
| Mail objMail = sess.CreateMailNotification(); |
| objMail.SetFrom("infomail@somebody.com")
;
//set sender address |
| objMail.SetTo("abonent@somebody.com")
;
//set destination address |
| objMail.SetCc("abonent2@somebody.com"); |
| objMail.SetBcc("abonent3@somebody.com"); |
| objMail.SetSubject("Notification Mail.")
;
//set subject |
| objMail.SetFormat("text")
;
//set format of message body |
| objMail.SetBody("You have made an appointment on 1:30pm."); |
| objMail.Send(); |
| // Retrieve message properties |
| System.out.println(objMail.GetCc()); |
| System.out.println(objMail.GetBcc()); |
| System.out.println(objMail.GetFormat()); |
| //Release Mail Notification object |
| objMail.Release(); |
| sess.Release(); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| System.out.println(e.Message); |
| sess.Release(); |
| } |