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

Undelivered Mails Error


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
siddhu.harpreet

New User


Joined: 02 Sep 2009
Posts: 1
Location: Chennai

PostPosted: Mon Sep 14, 2009 8:52 pm
Reply with quote

I'm getting undelivered mails while i am sending mails:

BY requirement is:

I have to send the report to the customer in ZIP format which as text file in it.

My job is running fine but i m getting the below undelivered mail having errors like :
Unable to deliver mail to some/all recipients.
Code:
050 DATA                                                                    00100000
501 Syntax Error. No Args after 'DATA' command
050 FROM: gmcg_vid@satyam.com                                               00110000
500 Unknown command, 'FROM'
050 TO: harpreet_siddhu@satyam.com                                          00120000
500 Unknown command, 'TO'
050 TO: harpreet0817@gmail.com                                              00130000
500 Unknown command, 'TO'
050 TO: siddhu.harpreet@gmail.com                                           00140000
500 Unknown command, 'TO'
050 SUBJECT: WR Extract                                                     00190000
500 Unknown command, 'SUBJECT'
050 MIME-VERSION: 1.0                                                       00200000
500 Unknown command, 'MIME'
050 CONTENT-TYPE: MULTIPART/MIXED;boundary="------------55266=15045=:257"   00210000
500 Unknown command, 'CONTENT'
050                                                                         00220000
500 Unknown command, '00220000'
050 This is a multi-part message in MIME format.                            00230000
500 Unknown command, 'This'
050                                                                         00240000
500 Unknown command, '00240000'
050 --------------55266=15045=:257                                          00250000
500 Unknown command, '-'
050 Content-type: text/plain; charset=us-ascii                              00260000
500 Unknown command, 'Content'
050 Content-transfer-encoding: 7bit                                         00270000
500 Unknown command, 'Content'
050                                                                         00280000
500 Unknown command, '00280000'
050                                                                         00290000
500 Unknown command, '00290000'
050                                                                         00300000
500 Unknown command, '00300000'
050 Please find attached WR EXTRACT.                                        00310000
500 Unknown command, 'Please'
050                                                                         00320000
500 Unknown command, '00320000'
050                                                                         00330000
500 Unknown command, '00330000'
050 Thanks & Regards                                                        00340000
500 Unknown command, 'Thanks'
050 VID Offshore Team                                                       00350000
500 Unknown command, 'VID'
050 --------------55266=15045=:257                                          00360000
500 Unknown command, '-'
050 CONTENT-TYPE: application/octet-stream; NAME="Wr_extract.zip"           00370000
500 Unknown command, 'CONTENT'
050 CONTENT-TRANSFER-ENCODING: base64                                       00380000
500 Unknown command, 'CONTENT'


The Member name which is having To and from email address is as below:
HELO PLIPC1B
MAIL FROM:<harpreet_siddhu@satyam.com>
RCPT TO:<harpreet0817@gmail.com>
RCPT TO:<siddhu.harpreet@gmail.com>
DATA
FROM: harpreet_siddhu@satyam.com
TO:<harpreet0817@gmail.com>
CC:<siddhu.harpreet@gmail.com>
CC:<siddhu.harpreet@gmail.com>
SUBJECT: Wards Extract File
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;boundary="------------55266=15045=:257"

This is a multi-part message in MIME format.

--------------55266=15045=:257
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

Please find attached BI EXTRACT.


Thanks & Regards
VID Offshore Team
--------------55266=15045=:257
CONTENT-TYPE: application/octet-stream; NAME="wards_file.zip"
CONTENT-TRANSFER-ENCODING: base64

Please let me know where i m making mistake because the same code is running fine in production but while testing i did some email ID change only and now its not working.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 14, 2009 9:01 pm
Reply with quote

at first glance looks like the issue might be with the sequence numbers in the control statements

try to resubmit getting rid of the sequence numbers in cols 73-80
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Sep 14, 2009 9:01 pm
Reply with quote

050 DATA 00100000
050 FROM: gmcg_vid@satyam.com 00110000
050 TO: harpreet_siddhu@satyam.com 00120000
050 TO: harpreet0817@gmail.com 00130000
050 TO: siddhu.harpreet@gmail.com 00140000

Why do you have those numbers (0011000, 0012000, 0013000, 0014000, and so on) after your commands? Seems to me as if they might cause some problems with SMTP.
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: Mon Sep 14, 2009 9:10 pm
Reply with quote

I know from personal experience that SMTP does not expect, nor does it handle, line sequence numbers. SMTP command files must have spaces after the command all the way to the end of each record.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top