Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SendTestMailTemplate: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "Category:Email_and_SMS_Functions {{HelpFiles}} = sendTestMailTemplate = == Syntax == sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, functionCons..."
 
Nguyenduyan (talk | contribs)
No edit summary
Line 18: Line 18:
number ''mailTemplateId''
number ''mailTemplateId''


EmailAccount ''emailAccountCGO''
[[EmailAccount class|EmailAccount]] ''emailAccountCGO''


''functionConstant''(subject, message): Use to update mail when sending.  
''functionConstant''(subject, message): Use to update mail when sending.  

Revision as of 09:21, 11 January 2018


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 protected]";
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};
});