You can make InterForm400 send out to a group of email addresses. In order to do that you will first need to define an email group to use. This is done if you select these options:
80. Administering InterForm 400
40. Email administration
1. Work with email groups
Work with email groups EMA100D
Position to . . . . . . Email group
Type options, press Enter. 2=Change 3=Copy 4=Delete 5=Display 7=Rename 12=Work with email addresses
Opt Email group Description SALES_GRP Group of all sales contacts
End F3=Exit F5=Refresh F6=Create F12=Cancel
|
Here you can create new ones with F6=Create, change the description of existing ones with 2=Change and use option 12=Work with e-mail addresses:
Work with email addresses EMA120D
Email group . . . . . : SALES_GRP
Type options, press Enter. 2=Change 3=Copy 4=Delete 5=Display
Opt Email address AB@demo_company5.com ABD@demo_company8.com CSE@demo_company7.com DD@demo_companyB.com EE@demo_companyB.com FF@demo_companyc.com Hans_Hansen@demo_company1.com Jason_Smith@demo_company4.com Jens_Hansen@demo_company2.com Jens_Jensen@demo_company3.com KJ@demo_company3.com K9@demo_company6.com RPGLE@demo_companyA.com More... F3=Exit F5=Refresh F6=Create F11=View 2 F12=Cancel
|
You can use F11=View 2 to view the e-mail addresses, names or descriptions. You add new receivers with F6=Create:
Change email address EMA130D
Email group . . . . . . : SALES_GRP
Email address . . . . . . RPGLE@demo_companyA.com
Name . . . . . . . . . . . Richard Peter Glenn
Description . . . . . . . Sales Manager of Demo CompanyA
F3=Exit F12=Cancel
|
The use of an email group is described for each of the possible ways of e-mailing, but generally it is implemented in this way:
For the email finish definition:
The email to address should be set to ‘*GROUP’ and the name of the receiver should contain the name of the mail group e.g. as below (as done in an e-mail exit program):
(The email group must be written in capital letters.)
CHGVAR VAR(&RTNTOADR) VALUE('*GROUP')
CHGVAR VAR(&RTNTONAM) VALUE('SALES_GRP')
If you are using a command like SNDEML or MRGSPLFPDF, you can refer to the group in this manner:
TOADR(*GROUP SALES_GRP) or TOADR((*GROUP SALES_GRP)) (for SNDEMAIL)
(Stating *GROUP as the mail address and the name of the mail group as the name of the receiver). The email group must be written in capital letters.
The same principle is used if you want to address a group as a BCC or CC receiver: State ‘*GROUP’ as the address and the group name as the name of the receiver.
Please note, that it is currently not possible to state a group as a BCC receiver if you are using the email finishing definition as you cannot specify a name for the BCC receiver here.