How do I e-mail a file from the mainframe?

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
dbdinc
Member
Posts: 17
Joined: Mon Aug 03, 2009 8:29 pm

How do I e-mail a file from the mainframe?

Post by dbdinc » Fri Aug 14, 2009 7:22 pm

I've been able to send a simple e-mail message from our mainframe to a person's outlook mail; my question now is, how do I attach a file to this same e-mail, so that the person gets a message and a file as an attachment?

Thank you in advance.....

Here is the JCL I used to send a message:

Code: Select all

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD *
//SYSPRINT DD SYSOUT=*
//SYSUT2   DD SYSOUT=M,DEST=(SACADMIN,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM&#58; <DJACKSON@MAIL.ACCD.EDU>

RCPT TO&#58;<DJACKSON20@MAIL.ACCD.EDU>
DATA
FROM&#58; DJACKSON20@MAIL.ACCD.EDU
TO&#58; DJACKSON20@MAIL.ACCD.EDU
SUBJECT&#58; FILE TRANSFER
THE INTERNET ONLY STUDENT FILE HAS BEEN COMPLETED
IT IS LOCATED ON THE SAC SERVER, IN THE FOLDER
TITLED ONLINE-COURSES

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri Aug 14, 2009 7:47 pm


dbdinc
Member
Posts: 17
Joined: Mon Aug 03, 2009 8:29 pm

Post by dbdinc » Sat Aug 15, 2009 12:35 am

I have visited that page before, but am still unable to send my e-mail with a file attached. Like I said, I get the simple message, but no file gets transmitted. When I modifiy my JCL to try to include a file to be sent as an attachment, I get nothing, not even a message.

I just don't know what I am doing incorrectly.

Thank you for replying - do you have any suggestions?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others