The send function is established to send mail by templates defined in the mail xml.
mail.send("mails","test01",{"to":"you@abc.def","nowdate":new Date(),"username":"Wang"});
Calling | Returning |
mail . send ( groupId, mailId, params ) | void |
Parameters | Type | Description |
groupId | String | "SubFolder/FileName". SubFolder is relatived from efw.mail.folder. FileName is the name of a mail xml file. |
mailId | String | The id of a mail tag in a mail xml file. |
params | JSON Object |
To send values which is requried by the mail defined in the mail xml file.
{"param1":value1,"param2":value2,...}
|