SendTestMailTemplate

From Catglobe Wiki
Revision as of 10:21, 11 January 2018 by Nguyenduyan (talk | contribs) (Created page with "Category:Email_and_SMS_Functions {{HelpFiles}} = sendTestMailTemplate = == Syntax == sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, functionCons...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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};
});