|
Hi all
I use SNDM (http://uzaemon.d.dooo.jp/) command to send mail from IBM i ;
now i should change a CLP porgram that run the command SNMD , but the CC
mail could not be present so i would not populate the parameter *CC.
I created this test CLP :
DCL VAR(&MAILFROM) TYPE(*CHAR) LEN(100) +
VALUE('x@xxxxxxxxx')
DCL VAR(&MAILTO) TYPE(*CHAR) LEN(100) +
VALUE('mymail@xxxxxxxxx')
DCL VAR(&VAR) TYPE(*CHAR) LEN(256)
DCL VAR(&VAR2) TYPE(*CHAR) LEN(50) VALUE('*N *CC')
CHGVAR VAR(&VAR) VALUE('mycc@xxxxxxxxx' *BCAT &VAR2)
SNDM FROM(&MAILFROM) +
TO((&MAILTO *N *TO) +
&var +
) +
FILE(QGPL/QTXTSRC) MBR(MAILDDT) +
SUBJECT('tst')
But it don't work as the &VAR is populated in this way "('mycc@xxxxxxxxx
*N *CC')" instead of
"('mycc@xxxxxxxxx' *N *CC)" . Which workaround to solve this build var ?
This is the log when i run my CLP
SNDM FROM('x@xxxxxxxxx')
TO(('mymail@xxxxxxxxx' *N *TO)
('mycc@xxxxxxxxx *N *CC'))
FILE(QGPL/QTXTSRC) MBR(MAILDDT)
SUBJECT('tst')
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.