IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBGENER - SMTP mail with empty attachment issue


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Fri Oct 05, 2012 4:52 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 05, 2012 5:22 pm
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
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 05, 2012 6:46 pm
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
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: 1742
Location: Tirupur, India

PostPosted: Tue Aug 18, 2015 6:15 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
Search our Forums:

Back to Top