We use Send-Mail webject to send email
public static void sendEmail(String body, String subject, String from,
String to, String cc) {
IeService ie = new IeService();
Webject web = new Webject();
web.setName("Send-Mail");
web.setType("MSG");
web.setService(ie);
web.addParam("SUBJECT", subject);
web.addParam("MAIL_SERVER", mailServer);
web.addParam("FROM", from);
web.addParam("TO", to);
web.addParam("CC", cc);
web.addParam("CONTENT_TYPE", "text/html");
web.addParam("CONTENT", body);
try {
web.invoke();
} catch (IEException iee) {
iee.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
Thanks,
Lakshman Easwaran
Stryker Orthopaedics
325 Corporate Drive
Mahwah, NJ 07430