Documentation

mailservice.add

mailservice.add(
   ACTIVE,
   NAME,
   SERVER,
   PORT,
   ENCRYPTION,
   LINK,
   SORT
)

The method adds a mail service.

Parameters

Parameter Description Available from version
ACTIVE Mail service activity status (Y / N)
NAME Name of added mail service
SERVER Address of added mail service
PORT Number of port
ENCRYPTION Encryption requirement (Y / N)
LINK Link to a mail service
SORT Sorting index

Example

BX24.callMethod(
	"mailservice.add",
	{
		'ACTIVE': 'Y',
		'NAME': 'Yahoo mail service',
		'SERVER': 'imap.yahoo.com',
		'PORT': '993',
		'ENCRYPTION': 'Y',
		'LINK': 'https://mail.yahoo.com/',
		'SORT': '500'
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024
Up