Use the dmemail utility

This topic explains how to use the dmemail utility for processing and sending notification emails.

About dmemail

The dmemail utility is a command that processes queued notification events held in the Dimensions CM database and turns them into actual emails. It is responsible for expanding the email templates with the mail content and sends the resulting email to end users.

You can run dmemail in the following ways:

  • Direct from a command prompt.

  • Automated via an existing customer scheduling system, such as cron.

  • Automated via the Dimensions Listener.

Back to top


You need to run dmemail from a user account that is part of the Dimensions CM ADMIN group.

When dmemail is scheduled using the Dimensions Listener, it runs as the same user as the dmpool process, which is specified in this file:

Windows %DM_ROOT%\dfs\listener.dat
UNIX $DM_ROOT/dfs/listener.dat

Back to top

Command-line syntax

The command-line syntax for the dmemail utility is:

dmemail [config-file]

if config-file is omitted, it defaults to:

Windows %DM_ROOT%\dfs\email_config.dat
UNIX $DM_ROOT/dfs/email_config.dat

Other parameters can be specified as part of the command line or entered in the configuration file. For details, see Dmemail configuration parameters.


  • Subsequent parameters, when entered on the command line, are used as key-value pairs. To use the default configuration file name and have parameters, use "-" as parameter 1.

  • Parameters entered on the command line take precedence over the options specified in the configuration file.

  • If you need spaces in the parameters, use double quotation marks.

  • The parameter names are not case-sensitive, and values of Y/y and N/n are equivalent.



dmemail -?

dmemail - debug=y logging=n "hello = greetings tim"

Back to top

Parameters in the dm.cfg file

The following entries are required in the dm.cfg server configuration file.

Symbol Description
DM_TMP Dimensions CM temporary file folder. This is used as default for working files, if other (email-specific) options are not specified.
DM_MAILS Symbol used by existing Dimensions CM email system to interface with an Operating System mail command. For details about general administration, see Administration.

Custom version of the above symbol for use with HTML email. Some mail commands have special options to enable HTML mail.

For example, the Dimensions CM- supplied program pcmsmail needs to be given the -i option, specified in this symbol.

Example of the last two symbols:

DM_MAILS        %DM_PROG%pcmsmail.exe -h "" -f "PCMS" -file "%%s" -s "%%s" -t "%%s"



This symbol is used to control the automatic startup and running of the dmemail application. It specifies the scheduled times that dmemail is required to start processing content.

DM_EMAIL_AUTOSTART_TIMES <spec> <spec> <spec> ........
<spec> : XX:YY | +XX:YY
XX:YY  : process e-mails at exactly XX:YY on the local 24 hour clock. (eg 03:00 will run a 3am local time)
+XX:YY : process e-mails every XX:YY hours/minutes, repeatedly. (eg. 01:00 will run every hour)


Working files and a log of activity is recorded in this directory when dmpool is managing the dmemail process.

Default: DM_TMP.


A severity level indicating the level of event that generates a record in the log.

0 generates the most information. Higher values restrict the messages to more severe events. To see information only about serious errors, set this symbol to 4.


This overrides the default location of the email templates, if required. If not specified, the default location is:

Windows %DM_ROOT%\email_templates
UNIX $DM_ROOT/email_templates

For details, see Administration.

Back to top

See also: