Hello all,
I am trying to send out an email from as400 with a Excel file attachment. I have my sqlrpgle code doing the creating of the file in qtemp. I am using the SNDSMTPEMM command on my CLLE program like so.
when I debug, it gets an error on the ATTACH line. The error is just "send email failed", no other details.
I searched online for other syntax, and they all error the same way. Any help would be appreciated. Thank you!
I am trying to send out an email from as400 with a Excel file attachment. I have my sqlrpgle code doing the creating of the file in qtemp. I am using the SNDSMTPEMM command on my CLLE program like so.
when I debug, it gets an error on the ATTACH line. The error is just "send email failed", no other details.
Code:
SNDSMTPEMM RCP((&EMAIL)) SUBJECT(&SUBJECT1) + ATTACH(('/QTEMP/EDIPF.xls' *EXCEL *BIN))
Code:
this is me trying the F4 method and putting in the required fields (without a forward slash in the beginning)...still the same error SNDSMTPEMM RCP((&EMAIL)) SUBJECT(&SUBJECT1) + ATTACH(('QTEMP/EDIPF.xls' *EXCEL *BIN))
Comment