EmailAccount getAllGlobalEmails

From Catglobe Wiki
Jump to: navigation, search



EmailAccount_getAllGlobalEmails

Get list global emails alias

Syntax

EmailAccount_getAllGlobalEmails();

Arguments

None

Return type

array list EmailAccount

Examples

array globalEmails = EmailAccount_getAllGlobalEmails();
for(number i=0;i<globalEmails.Count;i++)
{
	EmailAccount emailAcc = globalEmails[i];
	print("ActualEmail:" + emailAcc.ActualEmail);
	print("Address: " + emailAcc.Address);
	print("Alias: " + emailAcc.Alias);
	print("Default: " + emailAcc.Default);
	print("IsGEA: " + emailAcc.IsGEA);
	print("ResourceId: " + emailAcc.ResourceId);
	print("UseActualEmail: " + emailAcc.UseActualEmail);
	print("--------------------------------------------");
}
/*
ActualEmail:
Address: system_group@voxmeter.catglobe.com
Alias: System group
Default: True
IsGEA: True
ResourceId: 87
UseActualEmail: False
--------------------------------------------
*/