SimpleMail()


Instantiates a new empty SimpleMail class object.

Example:

SimpleMail
const mail = new SimpleMail();

checkConnection(current)


This method performs a test check with email server, basing on the configuration parameters (login, password, protocol, and so on).


Parameter(s):

NameTypeMandatoryDefault Value
currentSimpleRecordYN


Return:

TypeDescription
BooleanReturns TRUE if the connection is successful; otherwise, returns FALSE.


Example:

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