Sorry I'm not sure this is where to post this question but I'm hoping someone can help. We are currently setting up a AS400 new box with V6R1 but haven't gone live with it yet as I'm still testing.
My problem is I downloaded the latest and greatest version of MMAIL on it but some of the commands have changed. Formerly we used this command:
Any way the new MMAIL's code has changed I do know that all the TO information is no longer seperate but all in one and so is the SPLF information. The problem is I can't quite figure out how to do it. Here was my latest try:
What we are doing is calling a physical file that has all the email information and the names of the reports and queues and so forth. I know there were issues with converting to PDF in V6R1 but when I go to the MAIL menu and do this manually everything works great. It's something to do with my code I believe. From the command line this works great.
EMLSPL SUBJECT('t') FROMNAME('l') FROMADDR('email@address.com') TO('email@address.com'/'l'/*TO) SPLF(*YES/1/007556/SECOFR/DSP01002/DUMMYREPORT)
I've looked all over the MMAIL website and all I found was this:
Has anyone else come across this problem? I would appreciate any help.
My problem is I downloaded the latest and greatest version of MMAIL on it but some of the commands have changed. Formerly we used this command:
Code:
EVAL cmd_str = 'EMLSPL SUBJECT(''' + C* %trim(SUBJECT) + ''') ' + C* 'FROMNAME(''' + %trim(SenderName) + C* ''') FROMADDR(' + %trim(SenderAddr) + C* ') TONAME(''' + %trim(TONAME) + C* ''') TOADDR(' + %trim(TOEMAIL) + C* ') FILE(' + wSPLFName + C* ') JOB(' + %trim(wJobNumber) + C* '/' + %trim(wUserName) + C* '/' + %trim(wJobName) + C* ') SPLNBR(' + C* %trim(wSPLFNbr) + C* ')' + ' CVTPDF(*YES) + C* EDTMBR(*NO) + C* TXTF(AIMDATA/QTXTSRC) + C* TXTMBR(DFTMSGESPL)'
Code:
EVAL cmd_str = 'EMLSPL + C SUBJECT(''' + %trim(SUBJECT) + C ''') FROMNAME(''' + %trim(SenderName) + C ''') FROMADDR(' + %trim(SenderAddr) + C ') TO = (toemail: + C toname: + C *TO) SPLF = (*YES: + C wSPLFNbr: + C wusername: + C wjobname: + C wJobNumber: + C wSPLFName)'
What we are doing is calling a physical file that has all the email information and the names of the reports and queues and so forth. I know there were issues with converting to PDF in V6R1 but when I go to the MAIL menu and do this manually everything works great. It's something to do with my code I believe. From the command line this works great.
EMLSPL SUBJECT('t') FROMNAME('l') FROMADDR('email@address.com') TO('email@address.com'/'l'/*TO) SPLF(*YES/1/007556/SECOFR/DSP01002/DUMMYREPORT)
I've looked all over the MMAIL website and all I found was this:
Code:
MMAIL/EMLSPL SUBJECT('Daily sales report') FROMNAME('John Evans') FROMADDR('jevans@mail.com') TO('dooley@superstar.com'/'Tom Dooley'/*TO) SPLF(*YES/*LAST/*N/*N/*CURRENT/QSYSPRT)
Comment