Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SimpleMail()


This Use this constructor instantiates to instantiate a new empty SimpleMail class object.

Example:

Code Block
languagejs
themeEclipse
titleSimpleMail
linenumberstrue
const mail = new SimpleMail();

checkConnection(current)


This Use this method performs a test check with email server, based on the configuration parameters (login, password, protocol, and others).


Parameter(s):

NameTypeMandatoryDefault Value
currentSimpleRecordYN


Return:

TypeDescription
BooleanReturns 'Returns true' if the connection is successful; otherwise, it returns 'false'.


Example:

Code Block
languagejs
themeEclipse
titlecheckConnection()
linenumberstrue
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');
}


Table of Contents
absoluteUrltrue
classfixedPosition

...