Modify the Notification Script
Contents
xdtw1161
The XCOMNTFY script is used, when notification is requested, to notify users that a transfer has completed successfully. System administrators can modify this script to customize notification procedures, if necessary. For any other post-processing modifications, we recommend that you use XCOMPP.
XCOMNTFY
XCOMNTFY uses one of the following programs to read the queue entry to determine the user ID and password to send an email:
- xcommail to use the MAPI (Messaging Application Programming Interface)
- xcomsmtp to use the SMTP interface
Notification is done using the notify script, which is defined to
CA XCOM Data Transport
for Windows in the XNOTIFYCMD=%XCOM_HOME%\xcomntfy.bat global file.You need to set up the notify script to use xcommail or xcomsmtp. A sample notify script is distributed with
CA XCOM Data Transport
(see Sample XCOMNTFY Script).Requirements for SMTP Notifies
The following sections describe the requirements for addresses and related parameters for SMTP notifies.
From Addresses
This section describes the requirements for
from
addresses and related parameters for SMTP notifies (local and remote).- Local NotifiesFor an SMTP emaillocalnotify,CA XCOM Data Transportchecks the following parameters to use as thefromaddress:
- First, MAIL_USERNAME (in the global file or the configuration file)
- Second, FILE_ACCESS_USERNAME (in the global file or the configuration file)
- Third, local logged in user
- No notify happens.
- CA XCOM Data Transportdisplays an error message.
The following parameters must also be set: - Remote NotifiesFor an SMTP emailremotenotify,CA XCOM Data Transportchecks the following parameters to use as thefromaddress:
- First, MAIL_USERNAME (in the global file)
- Second, the USERID of the remote user (in the configuration file)
- Third, XCOM_USERID (in the global file)
- No notify happens.
- CA XCOM Data Transportdisplays an error message.
The following parameters must also be set:
To Addresses
This section describes the requirements for
to
addresses and related parameters for SMTP notifies (local and remote).- Local NotifiesFor an SMTP emaillocalnotify,CA XCOM Data Transportuses the following parameter as thetoaddress:
- LOCAL_NOTIFY (in the configuration file)
- No notify happens.
- CA XCOM Data Transportdisplays an error message.
The following parameters must also be set: - Remote NotifiesFor an SMTP emailremotenotify,CA XCOM Data Transportuses the following parameter as thetoaddress:
- NOTIFY_NAME (in the configuration file)
- No notify happens.
- CA XCOM Data Transportdisplays an error message.
The following parameters must also be set:
Sample XCOMNTFY Script
The sample XCOMNTFY script, xcomntfy.bat, is installed during the installation of
CA XCOM Data Transport
and can be found in your site’s installation directory.