IBM Support

SNDDST *LMSG to a Distribution List

Troubleshooting


Problem

This document explains how to use SNDDST *LMSG to send an e-mail to system users.

Resolving The Problem

This document explains how to use SNDDST *LMSG to send an e-mail to system users.

It is sometimes necessary to send an e-mail to a number of system users. Here are some basic considerations and actions to be able to set up a distribution list to accomplish that:

Base Assumptions:

1.SMTP is configured and can successfully send an e-mail to any orall of the individual users to be included in the distribution list.
2.The directory entry for each of the users is configured to use the following settings:
o Mail service level . . 2
o Preferred address . . . 3
o SMTP NAME is defined as their e-mail address.

Example Screen Shots:

Change directory entry screen

Press F19 = Change name for SMTP:

Adding the smtp information

You can verify that the individual directory entries are working correctly by sending an e-mail (SNDDST *LMSG) by specifying the individual recipient user IDs. An example of one of these test e-mails follows:

SNDDST TYPE(*LMSG) TOUSRID((EXAMPLE TESTSYS)) DSTD('TEST email to recipient') LONGMSG('Let me know when you receive this email.')

Once you have verified that you can send e-mails to the individuals specifying their user ID, you can create and define a distribution list using the WRKDSTL command.

Example: WRKDSTL
Select Option 1 to add new Distribution List with the list ID of your choice:

Create the distribution list

On the next screen, you can place a description of what you plan to use the list for. Once completed, the next screen is where you define the system users that you want to include in the list:

Add entries to distribution list

Once your distribution list has been defined, you can use SNDDST to verify that it works similar to the example below:

SNDDST TYPE(*LMSG) TOUSRID((NOTIFY TEAM)) DSTD('TEST new distribution list ') LONGMSG('Let me know when you receive this email.')

Note: The distribution list ID is typed in the Recipient User ID field rather than the Internet Recipient field if you were sending a Long Message(e-mail) to an individual's e-mail address.

SNDDST parameters

Your distribution list is now complete.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

584598612

Document Information

Modified date:
18 December 2019

UID

nas8N1011825