import ws.*; // Example of using WMail class from Passage Server Java API public class api_WMail { public WTableList Request(WServer oServer, WParamList oParamList) { int rc; String szSub, szMsg; String[] Recipients = new String[1]; WTableList oTableList; WMail oMail; oTableList = new WTableList(oServer); oMail = new WMail(oServer); oMail.SetContentType("text/html"); oMail.SetFrom("from@yourcompany.com"); Recipients[0] = "to@yourcompany.com"; szSub = "subject..."; szMsg = "message..."; rc = oMail.Send(Recipients, szSub, szMsg); return oTableList; } }