Hi,
I need some help with sending an email to multiple users via SNDDST.
My problem involves 2 RPG programs and 1 CL. Below is the part of the CL that is being used to send the email.
SNDDST TYPE(*FILE) TOINTNET((&ADDR)) +
DSTD(NODISTDESC) USRID(*CURRENT) +
DOCFILE(file1) DOCTYPE(*FFT) +
SUBJECT(&SUBJ)
The first RPG(RPG1) program creates the contents of the email(header, receiver, other details) and puts it into EMAILFILE. The RPG program only puts in 1 receiver.
The second RPG(RPG2) program takes the Subject and Receiver from EMAILFILE and passes it to the CL program as &ADDR and &SUBJ.
I've been asked to send a copy of EMAILFILE to 3 other users besides the original receiver. I'm planning to use a mailing group for the 3 users and hardcode the mailing list in the Output Specs of RPG1.
I can't change RPG2 and the CL beyond making &ADDR larger as there are other programs that use it to send email out and the 3 users only need to have a copy of the email generated by RPG1.
What separator do I need to add another recipient to &ADD?
Thanks in advance.
I need some help with sending an email to multiple users via SNDDST.
My problem involves 2 RPG programs and 1 CL. Below is the part of the CL that is being used to send the email.
SNDDST TYPE(*FILE) TOINTNET((&ADDR)) +
DSTD(NODISTDESC) USRID(*CURRENT) +
DOCFILE(file1) DOCTYPE(*FFT) +
SUBJECT(&SUBJ)
The first RPG(RPG1) program creates the contents of the email(header, receiver, other details) and puts it into EMAILFILE. The RPG program only puts in 1 receiver.
The second RPG(RPG2) program takes the Subject and Receiver from EMAILFILE and passes it to the CL program as &ADDR and &SUBJ.
I've been asked to send a copy of EMAILFILE to 3 other users besides the original receiver. I'm planning to use a mailing group for the 3 users and hardcode the mailing list in the Output Specs of RPG1.
I can't change RPG2 and the CL beyond making &ADDR larger as there are other programs that use it to send email out and the 3 users only need to have a copy of the email generated by RPG1.
What separator do I need to add another recipient to &ADD?
Thanks in advance.