Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
SimpleMail()
This method instantiates a new empty SimpleMail class object.
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
const mail = new SimpleMail(); |
checkConnection(current)
This method performs a test check with email server, based on the configuration parameters (login, password, protocol, and so onothers).
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
current | SimpleRecord | Y | N |
Return:
Type | Description |
---|---|
Boolean | Returns 'true' if the connection is successful; otherwise, it returns 'false'. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
const mail = new SimpleMail(); if (mail.checkConnection(current)) { ss.addInfoMessage('Сonnection successful'); } else { ss.addErrorMessage('Connection failed'); } |
Table of Contents | ||||
---|---|---|---|---|
|