Previous Topic: Notification Methods

Next Topic: Email Notifications

pdm_mail Utility--Send Email Information

The pdm_mail utility is used in notifications to send emails by sending email information to the pdm_mail_nxd process. The pdm_mail utility can also be used for commands, but not to both. If no parameters are used, then the default behavior of using the NX_NTF_xxxx variable to pass parameters is in effect.

For email, the utility is invoked as follows:

pdm_mail [-i [-s subject] [-e email_address] [-q]] [-p] [-M] [-F] [-T] [-B] [-H] [-N] [-R] [-h]
-i

Uses STDIN instead of NTF variables. The following parameters are used for STDIN email behavior only:

-e

Specifies the email address (for recipient).

-s

Specifies the subject for the email.

-q

Disables the display prompt for STDIN.

-p

Utilizes pager logic. This option includes using the pager email address instead of the regular email address. Only the plain text version of the notification is used (no HTML).

-M

Uses plain text only (no MIME) in body.

-F

Specifies the From address of the email.

-T

Specifies the Reply-To address of the email.

-B

Specifies the body charset. This might be useful for pagers that do not support the UTF-8.

-H

Specifies the header charset. This might be useful for pagers that do not support the UTF-8.

-N

Specifies the Delivery Status Notification (DSN) Notify option.

-R

Specifies the Delivery Status Notification (DSN) Return option.

-h

Displays help on the utility.

For commands, the utility is invoked as follows:

Command to mail server

pdm_mail -c option [parameter]

Command to mail eater

pdm_mail -x option [parameter]
check_interval

(-x only) Changes the check mail interval to a specified value (in seconds).

report_interval

Changes the report interval to a specified value (in seconds).

report_now

Forces a report to the logs. The counter is not reset.

send_q

(-c only) Sends local mail queue to remote mail server.

trace

Turns tracing on or off.

Important! On UNIX, the LIBPATH must be set before running several CA SDM utilities. Use pdm_task to set the LIBPATH before running a utility. For example, input "pdm_task pdm_clean_attachments ...".