PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Specifies and configures the server used to send notifications by the HFSQL server. This sending can be performed:
  • By email: the server to configure is a SMTP server.
  • Via the Control Centers (WDBal messaging tool). The Control Centers can use a HFSQL Classic database or a HFSQL Client/Server database.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
ctCSConnection is Connection
ctCSConnection..Provider = hAccessHFClientServer
ctCSConnection..User = "admin"
ctCSConnection..Password = ""
ctCSConnection..Server = "test:4900"
HOpenConnection(ctCSConnection)

HNotifConfigure(ctCSConnection, hNotifCCCS, "DOC:4988", "CC_DOC", "DOC", "")
ctCSConnection is Connection
ctCSConnection..Provider = hAccessHFClientServer
ctCSConnection..User = "admin"
ctCSConnection..Password = ""
ctCSConnection..Server = "test:4900"
HOpenConnection(ctCSConnection)

HNotifConfigure(ctCSConnection, hNotifEmail, "FLOWER:25", "test.doc", "doc", "doc@pcsoft.com", False)
Syntax

Configuring the sending of emails via a SMTP server Hide the details

<Result> = HNotifConfigure(<Connection Name> , <Type> , <SMTP Server> , <Login> [, <Password>] , <Sender> , <Secure Session>)
<Result>: Boolean
  • True if the configuration was performed.
  • False otherwise. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined:
<Type>: Integer constant
Type of sending:
hNotifEmailThe notifications are sent by email.
<SMTP Server>: Character string (with quotes)
DNS name or IP address of email server (outgoing protocol). This IP address is supplied by the service provider or by the network administrator.
Caution: You must use the SMTP server of the provider of Internet connection.
<Login>: Character string (with quotes)
Login used to connect to the SMTP server.
<Password>: Optional character string (with quotes)
Password associated with the connection login on the SMTP server. This password is given by the service provider or by the network administrator.
If this parameter is not specified, the former value is automatically used.
<Sender>: Character string (with quotes)
Email address used as sender in the notification emails.
<Secure Session>: Boolean
  • True to start a session secured by the TLS protocol.
  • False otherwise.

Configuring the sending of messages in WDBal (Control Centers in Client/Server) Hide the details

<Result> = HNotifConfigure(<Connection Name> , <Type> , <Control Center Server> , <Control Center Database> , <Login> [, <Password>])
<Result>: Boolean
  • True if the configuration was performed.
  • False otherwise. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined:
<Type>: Integer constant
Type of sending:
hNotifCCCSThe notifications are sent by the Control Centers in Client/Server mode.
<Control Center Server>: Character string (with quotes)
DNS name or IP address of the HFSQL server hosting the Control Centers.
<Control Center Database>: Character string (with quotes)
Name of the database used for the Control Centers.
<Login>: Character string (with quotes)
Login used to connect to the HFSQL server and to the database of Control Centers.
<Password>: Character string (with quotes)
Password associated with the connection login.
If this parameter is not specified, the former value is automatically used.

Configuring the sending of messages in WDBal (Control Centers in HFSQL Classic) Hide the details

<Result> = HNotifConfigure(<Connection Name> , <Type> , <Control Center Path> , <Login> [, <Password>])
<Result>: Boolean
  • True if the configuration was performed.
  • False otherwise. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined:
<Type>: Integer constant
Type of sending:
hNotifCCClassicThe notifications are sent by the Control Centers in HFSQL Classic mode.
<Control Center Path>: Character string (with quotes)
Access path to the HFSQL Classic data files of Control Centers.
<Login>: Character string (with quotes)
Login used to connect to the database of Control Centers.
<Password>: Character string (with quotes)
Password associated with the connection login.
If this parameter is not specified, the former value is automatically used.

Retrieving the parameters of the current configuration Hide the details

<Result> = HNotifConfigure(<Connection Name> , <Type>)
<Result>: Character string
List of parameters corresponding to the requested configuration (caution, the passwords are not supplied).
The result has the following format:
with the hNotifCCClassic constant:<Control Centre Path> + CR + <Login>
with the hNotifCCCS constant:<Control Center Server> + CR + <Control Center Database> + CR + <Login>
with the hNotifEmail constant:<SMTP server> + CR + <Login> + CR + <Sender> + CR + <Secure session>
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined:
<Type>: Integer constant
Type of sending for which the configuration is requested:
hNotifCCClassicThe notifications are sent by the Control Centers in HFSQL Classic mode.
hNotifCCCSThe notifications are sent by the Control Centers in HFSQL Client/Server mode.
hNotifEmailThe notifications are sent by email.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment