You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
This method instantiates a new empty SimpleMail class object.
Example:
const mail = new SimpleMail();
This method performs a test check with email server, based on the configuration parameters (login, password, protocol, and so on).
Parameter(s):
Return:
const mail = new SimpleMail(); if (mail.checkConnection(current)) { ss.addInfoMessage('Сonnection successful'); } else { ss.addErrorMessage('Connection failed'); }