SendTestMailTemplate
Revision as of 10:51, 12 May 2022 by Administrator (talk | contribs)
[Will obsolete soon and replace by EmailTemplate_send]
sendTestMailTemplate
Syntax
sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, functionConstant (subject, message));
Arguments
string email
string alias
number mailTemplateId
EmailAccount emailAccountCGO
functionConstant(subject, message): Use to update mail when sending.
Return type
Empty
Example
string email="email@test.com";
string alias = "emailTest";
number mailTemplateId = 2504;
EmailAccount emailAccountCGO = new EmailAccount("panel");
sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, function(string subject, string message ){
subject = "test subject";
message = "body test";
return {subject,message};
});