|
|
|
|
|
HNotifAddEmailRecipient (Function) In french: HNotifAjouteDestinataireEmail
Available only with this kind of connection
Adds recipients for the notifications sent by email. These notifications are sent when the HFSQL server encounters a problem. Note Send by email uses parameters specified with HNotifConfigure (email server, ...). cnxConnexionCS is Connection
cnxConnexionCS.Provider = hAccessHFClientServer
cnxConnexionCS.User = "admin"
cnxConnexionCS.MotDePasse = ""
cnxConnexionCS.Server = "test:4900"
HOpenConnection(cnxConnexionCS)
HNotifConfigure(cnxConnexionCS, hNotifEmail, "FLEUR:25", "test.doc", "doc", "doc@pcsoft.com", False)
HNotifAddEmailRecipient(cnxConnexionCS, "test.appli@gmail.com", hNotifWarning)
Syntax
<Result> = HNotifAddEmailRecipient(<Connection> , <Recipient> , <Minimum level>)
<Result>: Boolean - True if the recipient was added.
- False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable Connection to use. This connection corresponds to: <Recipient>: Character string Email address of recipient. <Minimum level>: Integer constant Minimum level of gravity from which a notification is sent: | | hNotifCritical | The notifications will be sent from the critical level (for the critical and error problems). Example of a critical error: "Error during replica preparation on the master." | hNotifError | The notifications will be sent for the error problems only. Error example: "The server activity statistics file is damaged. It will be reinitialized." | hNotifInformation | The notifications will be sent from the information level (for the information, warning, critical and error problems) Examples of information: - During the automatic server update:
- "The server will be stopped for update. Another notification will be added after the update."
- "The server was updated to version XXX."
- During the search for necessary keys on a database in exploitation.
| hNotifWarning | The notifications will be sent from the warning level (for the warning, critical and error problems). Example warning: "Server XX and server YY do not have the same time. Conflict resolution during replication may be distorted." |
The order of gravity is: - Information.
- Warning.
- Error.
- Critical.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|