On Fri, 17 Aug 2007 08:41:18 -0500, McKown, John wrote:

>
>As best as I can tell, IBM does not supply such a solution. Email
>attachments are not magic, they are simply specially encoded email.

Here's what I do GENERing data to SMTP:

//SYSUT1   DD  *
HELO MyServer.MyDomain.COM
MAIL FROM: <[EMAIL PROTECTED]>
RCPT TO: <[EMAIL PROTECTED]>
DATA
TO: <[EMAIL PROTECTED]>                               
FROM:  <[EMAIL PROTECTED]>
Subject:  Mainframe E-Mail with Attachment
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===_boundary_==="

--===_boundary_===
Content-Type: text/plain; charset="us-ascii"

This is an example of an E-Mail with an attachment

Double Click the attachment icon to open.

--===_boundary_===
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="MY.ATTACHMENT.FILE"

//         DD  DSN=MY.ATTACHMENT.FILE,
//             DISP=SHR
//         DD  *

--===_boundary_===

.
QUIT

//SYSUT2   DD  SYSOUT=(B,SMTP)


No XMITIP, although I hear it's a nice tool. Nothing purchased. I don't know if 
this is SENDMAIL though.

In reality, I store the header and trailers in VB PDS's so I can get around the 
matching DCB requirements of GENER. If your attachment is 80 bytes, you can 
probably get away with this instream as portrayed.

Good Luck

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to