following simple rule will send mail. 

* you must create the email template , in following eample it uses "Alert Notification " email template


import sailpoint.object.EmailOptions;

import sailpoint.object.EmailTemplate;


EmailOptions options = new EmailOptions();

EmailTemplate emailTemp = context.getObjectByName(EmailTemplate.class, "Alert Notification");

options.setTo("testingYoav@outlook.com");

context.sendEmailNotification(emailTemp, options);