I’m trying to use SMTP to send emails using IBM JCL (IEBGENER). This is the JCL I’m using.I’m getting INVALID COMMAND errors on the. The data termination in SMTP step is period “.”. So keep on repeating these and you can create multiple emails. //IEBGENER JOB ACCT,’DATA. I suspect that your SMTP service was upgraded and may have become more sensitive to errors in setting up messages — your example has a few.
|Published (Last):||20 November 2018|
|PDF File Size:||12.19 Mb|
|ePub File Size:||7.31 Mb|
|Price:||Free* [*Free Regsitration Required]|
Email is sent with no body content via SMTP on Mainframe – Stack Overflow
Post as a guest Name. Here is the JCL used: So it’s hard to pick the pit.
IBM MAINFRAME & MVS FORUM
Using batch SMTP command in TSO utilities
Also, the last boundary delimiter, the one that terminates the last part of the message should have two hyphens appended to it. Sign up or log in Sign up using Google. The boundary subparameter of the Content-type parameter relates to multipart messages it is the boundary delimiter between message parts.
Taking all this into consideration, a conforming message would look more like: Unfortunately, I do not have access to the configuration files.
Sign up using Facebook. QUIT Note that the blank lines in the above exampe are significant and that the last boundary delimiter has two trailing hypens. Has been the email server emtp client updated?
Proper usage of the boundary delimiter in a multipart message generally requires that the boundary delimiter be followed by a blank line. The Content-type of your message is not multipart so I imagine that “support” for the boundary subparameter may have been dropped yielding unpredictable results.
All one physical line, just as shown. Surprisingly, It has worked till couple of days ago.
Edited the answer and removed my comment.