const current = new SimpleRecord('sys_email_account');
current.get('157425284611357796');
const mail = new SimpleMail();
if (mail.checkConnection(current)) {
ss.addInfoMessage('Сonnection successful');
} else {
ss.addErrorMessage('Connection failed');
}