Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 878 Bytes

mail.send.md

File metadata and controls

26 lines (20 loc) · 878 Bytes

mail.send

The send function is established to send mail by templates defined in the mail xml.

Sample

	mail.send("mails","test01",{"to":"you@abc.def","nowdate":new Date(),"username":"Wang"});

API

CallingReturning
mail . send ( groupId, mailId, params )void
ParametersTypeDescription
groupIdString"SubFolder/FileName". SubFolder is relatived from efw.mail.folder. FileName is the name of a mail xml file.
mailIdStringThe id of a mail tag in a mail xml file.
paramsJSON Object To send values which is requried by the mail defined in the mail xml file.
{"param1":value1,"param2":value2,...}