Difference between revisions of "SendTestMailTemplate"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "Category:Email_and_SMS_Functions {{HelpFiles}} = sendTestMailTemplate = == Syntax == sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, functionCons...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Email_and_SMS_Functions]]
 
[[Category:Email_and_SMS_Functions]]
{{HelpFiles}}
+
[Will obsolete soon and replace by [[EmailTemplate_send|EmailTemplate_send]]. More detail at [[ConversionMethods|ConversionMethods]] ]
  
 
= sendTestMailTemplate =
 
= sendTestMailTemplate =
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.  

Latest revision as of 03:27, 13 May 2022

[Will obsolete soon and replace by EmailTemplate_send. More detail at ConversionMethods ]

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