nani821
New User
Joined: 07 Nov 2022 Posts: 4 Location: India
|
|
|
|
Hi All,
I am trying to send a mail with excel attachment. I am using the IBMGENER with below code, bit I am getting text email without attachment. Please help me to send a mail with excel attachment
HELO TSOM.uboc.com
MAIL FROM: <XXXX@XXXX.COM>
RCPT TO: <XXXX@XXXX.COM>
DATA
FROM: <XXXX@XXXX.COM>
SUBJECT :"Data-dump"
--boundary_characters
CONTENT-TYPE: application/msexcel;
name= "data.xls"
Content-Transfer-Encoding: 64bit
My data file has:
NAME|PLACE|ZIPCODE|PH NUM| |
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
First problem: you created your topic in the Mainframe Jobs forum. Your post has nothing to do with mainframe jobs, so I moved it.
Second problem: unless you have a mainframe program that can generate Excel format, you will NOT, under any circumstances, be able to get an Excel attachment through the send. You CAN do comma-delimited, which Excel recognizes -- but it is not an .xlsx or .xls formatted file. A comma-delimited file can only contain a single workbook (tab).
Third problem: in order to send an attachment, you must follow the SMTP rules and you have not done so. If you do a search in this forum, you can find several posts I did some years back explaining how to send an attachment to an SMTP message. One thing that MUST be stressed, though, is that sending attachments in SMTP is extremely sensitive to formatting. The spacing, blank lines, and separator lines must be precisely done or the attachment won't be sent. If you find the posts, follow their rules, and experiment some you can get attachments to send. |
|