You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

SimpleMail()


This constructor instantiates a new empty SimpleMail class object.

Example:

SimpleMail
const mail = new SimpleMail();

checkConnection(current)


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 'true' if the connection is successful; otherwise, it returns 'false'.


Example:

checkConnection
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');
}

ParaphraseBasicCloseSynonymsmethodmethod (noun)know-howShow allAI-generated alternativesRephrase your sentences with A.I.You need a shorter, more fluent, or more formal text? We’ve got you covered. Please consult our Privacy Policy regarding data processing.Accept Privacy Policy

  • No labels