efw.resources.server.efw.server.mail.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of efw Show documentation
Show all versions of efw Show documentation
"efw" is an Ajax framework for server site JavaScript designed
and developed by Escco Co., Ltd. using a goal-oriented method.
It is provided as open source free software.
The newest version!
"use strict";
/**** efw4.X Copyright 2019 efwGrp ****/
/**
* The class to send mail.
*
* @author Chang Kejun
*/
function EfwServerMail() {
};
/**
* The function to send mail.
*
* @param {String}
* groupId: required
* @param {String}
* mailId: required
* @param {Object}
* params: required
* {param1:value1,param2:value2,...}
*/
EfwServerMail.prototype.send = function(groupId, mailId, params) {
var hashMapParams = new java.util.HashMap();
for ( var key in params) {
var vl = "" + params[key];
hashMapParams.put(key, vl);
}
Packages.efw.mail.MailManager.send(groupId, mailId, hashMapParams);
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy