bvstone

Using MAILTOOL Distribution Lists to Send Emails to Multiple Recipients from your IBM i

Posted:

Using MAILTOOL Distribution Lists to Send Emails to Multiple Recipients from your IBM i

For years now MAILTOOL has had it's own distribution list system.  This allows you to send emails to multiple recipients using only a single distribution list name from your IBM i.

Previously this was a feature only available to MAILTOOL Plus customers, but we have also extended that functionality to the base MAILTOOL product as well.

Setting up a distribution list is easy using the MAILTOOL Distribution List Maintenance (MLTDSTL) command:

This display is the main interface for the MAILTOOL distribution lists.  There are functions to add a new list, or import a distribution list from an IBM system list.   In this example we will use the F6 option to create and name a new distribution list, which is pretty self explanatory.

Once you have named the list and given it a description, you can start adding email addresses to it using option 8 next to the list.  This will bring up the MAILTOOL Distribution List Entry Maintenance screen:

If you are working with an existing list this screen will list the email addresses set up in the list.  If not, the list will be empty.  For existing entries you have the option to edit or delete them.  Editing an entry will only allow you to update the description and the type of entry.

If you wish to add a new entry to your distribution list, you can use F6 function key and you will be presented with the following screen:

When adding a new distribution list entry you have 3 fields to use.  

First, enter the email address on the Address line.  Next, enter a description for the entry on the Description line.  This can be the entry's name, or a description.  When sending an email, this value will be used as the description of the email address.

Finally we have the Type line.  On this line you will enter the type of address this is.  The valid values are:

  • DFT - The type of recipient will be dependent on which type of recipient (TO, CC or BCC) the distribution list is specified on on the MAILTOOL command.  For example, if you specify *DFT for the distribution list type and specify the distribution list entry on the CC parameter, this address will be a CC address.
  • *TO - The recipient will always be included as a TO recipient
  • *CC - The recipient will always be included as a CC recipient
  • *BCC - The recipient will always be included as a BCC recipient

To use the distribution list you can use the distribution list ID (preceded by a *) on the TO, CC or BCC paratmers of MAILTOOL (or SPL2EMAIL).  For example:

MAILTOOL TOADDR(*TEST)... 

So, as you can see, setting up distribution lists can be very easy and save a lot of work.  

For example, with our customers we are seeing more and more of them that would like to send emails such as license keys, license renewal notifications and newsletters to a list of addresses, not just one.  In those cases we simply create a distribution list for that customer, adding all of the addresses the customer would like to receive the emails.  Then instead of a single email address we use this distribution list on the MAILTOOL command.

Other customers use this feature and actually update their distributions lists using a program, accessing the files directly and setting the lists to their values before sending the email.  For more information on this feel free to contact me and I am happy to help.


Last edited 06/19/2020 at 10:54:10



Latest Posts:

What Objects Should I Omit from Replication to Ensure My License Keys Work on my HA/DR System? What Objects Should I Omit from Replication to Ensure My License Keys Work on my HA/DR System?
Posted by 3 days ago
BVSTools >> BVSTools Software Discussion
GreenTools for Google Apps (G4G) v15.00 Now Offers Functions to Bypass Registration Command and BVSTools Landing Page GreenTools for Google Apps (G4G) v15.00 Now Offers Functions to Bypass Registration Command and BVSTools Landing Page
Posted by May 3, 2022
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
How Do I Switch From MAILTOOL Plus to GreenTools for Google or Microsoft Office 365? How Do I Switch From MAILTOOL Plus to GreenTools for Google or Microsoft Office 365?
Posted by April 18, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
PTFs Issued for SSL/TLS Issues PTFs Issued for SSL/TLS Issues
Posted by March 12, 2022
IBM Power Systems >> PTF Watch
Google Dropping Support for Google Dropping Support for "Less Secure Apps" May 30th, 2022. What Does This Mean for Your IBM i Email?
Posted by March 4, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Have You Installed a New Version of MAILTOOL and Now Things Are Acting Different?  Check the Command Defaults! Have You Installed a New Version of MAILTOOL and Now Things Are Acting Different? Check the Command Defaults!
Posted by February 28, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Using MAILTOOL Plus on V7R1, or Any OS Using TLS 1.1 or Older Using MAILTOOL Plus on V7R1, or Any OS Using TLS 1.1 or Older
Posted by January 27, 2022
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
BVSTools ILE Functions Being Updated to Remove Hashtag (#) from Function Names BVSTools ILE Functions Being Updated to Remove Hashtag (#) from Function Names
Posted by December 30, 2021
BVSTools >> BVSTools Announcements
GETURI v12.00 Released Removing Beginning # (Hashtag) From Function Names GETURI v12.00 Released Removing Beginning # (Hashtag) From Function Names
Posted by December 28, 2021
BVSTools >> BVSTools Announcements >> Get URI (GETURI) Specific Announcements
Is any of BVSTools Software Affected by the log4j exploit? Is any of BVSTools Software Affected by the log4j exploit?
Posted by December 20, 2021
BVSTools >> BVSTools Software Discussion
GreenTools for Microsoft Apps (G4MS) Updated to Allow Downloads, Deletes, and Sharing of Files GreenTools for Microsoft Apps (G4MS) Updated to Allow Downloads, Deletes, and Sharing of Files
Posted by December 17, 2021
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements
SSL Handshake Errors with GETURI, MAILTOOL and GreenTools Products SSL Handshake Errors with GETURI, MAILTOOL and GreenTools Products
Posted by October 18, 2021
BVSTools >> BVSTools Software Discussion
MAILTOOL Updated to Retry Sending when GSK SSL Handshake Error 415 (GSK_ERROR_BAD_PEER) is Encountered MAILTOOL Updated to Retry Sending when GSK SSL Handshake Error 415 (GSK_ERROR_BAD_PEER) is Encountered
Posted by August 19, 2021
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
MAILTOOL Updated to Allow List-Unsubscribe and User Defined Headers MAILTOOL Updated to Allow List-Unsubscribe and User Defined Headers
Posted by August 13, 2021
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
AWS signing process in as400 AWS signing process in as400
Posted by August 13, 2021
Programming >> Web Programming

Reply




Copyright 1983-2020 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).