View previous topic :: View next topic
|
Author |
Message |
mlp
New User
Joined: 23 Sep 2005 Posts: 91
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Yup, it's that squashed ant on the screen given the information that you have (not) given. |
|
Back to top |
|
|
mlp
New User
Joined: 23 Sep 2005 Posts: 91
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ezio vin
New User
Joined: 16 Aug 2012 Posts: 44 Location: india
|
|
|
|
code & error message please |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
David Maher
New User
Joined: 17 Aug 2015 Posts: 3 Location: Australia
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
|