Script to Send Email
From Observer GigaFlow Support | VIAVI Solutions Inc.
var CMail = Java.type('ros.CMail'); //public CMail(String to, String subject, String message) { //public CMail(String to, String cc, String subject, String message) { var email = new CMail('kevin@anuview.net','kevin@wilkies.com','test','testmail'); //public void attach(String filename, String fieldname, String description) { email.attach("c:\\temp\\testmail.txt","field2","test atatchment"); //public boolean send(String server, int port, String from, boolean tls, String user, String pass) { email.send(actions.getMailServer(),actions.getMailPort(),actions.getMailFrom(),actions.isMailTLS(),actions.getMailUser(),actions.getMailPass())