public static void main(String[] args) {
    MailManager mailManager = new MailManager("mailsrv1.gemstone.com", "hkhanna@gemstone.com");
    mailManager.sendEmail("Alert!", "Test");
  }
Incorporating subject and message of email
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MailManager.java