Documentation

mailservice.update

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

The method updates parameters of a mail service.

Parameters

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

Example

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


© «Bitrix24», 2001-2024