Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEBGENER - SMTP mail with empty attachment issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Fri Oct 05, 2012 4:51 pm    Post subject: IEBGENER - SMTP mail with empty attachment issue
Reply with quote

We are trying to send a mail with CSV file attachments with some content in the file. The CSV file length is 4000 bytes. The mail is being sent but the attachment is empty.

Can somebody let me know what is going wrong?
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1713
Location: UK

PostPosted: Fri Oct 05, 2012 4:52 pm    Post subject:
Reply with quote

Yup, it's that squashed ant on the screen given the information that you have (not) given.
Back to top
View user's profile Send private message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Fri Oct 05, 2012 4:56 pm    Post subject:
Reply with quote

Well... here is elaboration -

I am trying send a mail with attachments via IEBGENER step. The attachment file has 4000 byte length and after execution of the step mail is recieved by recepient with attahcment but the attached file is empty.

I hope this is good enough.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Fri Oct 05, 2012 5:22 pm    Post subject:
Reply with quote

How are you doing the attachment? MIME or something else?
What do your SMTP statements look like? Do you have the right boundary values in the right places? You are not attempting to esceed the limit of 998 bytes per line in your email, right?

You have actually provided us with NOTHING that can help. Making general statements without details, such as you've done so far, do not give us anything since (usually) the details are where the problem is.
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Fri Oct 05, 2012 5:50 pm    Post subject:
Reply with quote

code & error message please
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Oct 05, 2012 6:46 pm    Post subject: Reply to: IEBGENER - SMTP mail with empty attachment issue
Reply with quote

Quote:
I hope this is good enough.


no.... rewording the same description , without adding anything useful,
is not elaboration... just a waste of time for everybody!
Back to top
View user's profile Send private message
David Maher

New User


Joined: 17 Aug 2015
Posts: 3
Location: Australia

PostPosted: Tue Aug 18, 2015 5:58 am    Post subject:
Reply with quote

Sending a .CSV Data file to OUTLOOK as an Excel Spreadsheet attachment requires a single blank line to be inserted between the SMTP Header information and the data itself. Otherwise you end up with a blank Spreadsheet.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Tue Aug 18, 2015 6:15 pm    Post subject:
Reply with quote

Hello David,
Welcome to the forum. :-)

Quote:
Sending a .CSV Data file to OUTLOOK as an Excel Spreadsheet attachment requires a single blank line to be inserted between the SMTP Header information and the data itself.


I don't think a blank line is needed. Atleast it works fine without empty line on Outlook 2010 which I have.
The below JCL sends one line of data in CSV format properly in individual Excel cells.

Code:
//EMAIL    EXEC  PGM=IEBGENER                                   
//SYSUT1   DD  *                                                 
HELO lpar                                                       
MAIL FROM:<wells@wells.com>                     
RCPT TO:<wells@wells.com>                       
DATA                                                             
FROM: wells@wells.com                         
TO: wells@wells.com                           
SUBJECT: THIS IS A TEST EMAIL                                   
MIME-VERSION: 1.0;                                               
IMPORTANCE: HIGH                                                 
CONTENT-TYPE: TEXT/RICH TEXT;                                   
CONTENT-DISPOSITION: ATTACHMENT; FILENAME = TESTING.CSV         
ONE,TWO,THREE                                                   
.                                                               
/*                                                               
//SYSUT2   DD  SYSOUT=(B,SMTP)                                   
//SYSIN    DD  DUMMY                                             
//SYSOUT   DD  SYSOUT=*                                         
//SYSPRINT DD  SYSOUT=*   


Also it is important to note that the topic is close to 3 years old.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
This topic is locked: you cannot edit posts or make replies. how to find if file is empty or not. abdulrafi DFSORT/ICETOOL 5 Tue May 17, 2016 4:39 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us