View previous topic :: View next topic
|
Author |
Message |
prerna_gupta11
New User
Joined: 21 Mar 2007 Posts: 9 Location: United states
|
|
|
|
I am using the below step to send a .HTML file thru email (using a JCL). It gives a return code of 0 but i am not getting the email. A similar job is already running in production where i am getting emails.
Below is the step in the JCL which sends .HTML file:
Code: |
//****************************************************************
//* STEP TO SEND EMAIL IN HTML FORMAT *
//****************************************************************
//STPMAIL EXEC PGM=IEBGENER,COND=(0,NE,JS0200.XXXX0100)
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXX.SLA.REPORT.HEADER,DISP=SHR
// DD DSN=XXXX.ABC.SLA.REPORT.FINAL(+1),DISP=SHR
//SYSUT2 DD SYSOUT=(B,SMTP),LRECL=1500
|
The SAR shows the job was successful, but no email received:
S=(006, .STPMAIL ),RCODE=0000
Both the files in SYSUT1 are 1500 bytes file and have the data. Can anyone please help me to check if there is any issue? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
prerna_gupta11 wrote: |
Can anyone please help me to check if there is any issue? |
Going to be kind of hard without any details, diagnostic messages, traces, etc., don't you think? |
|
Back to top |
|
|
prerna_gupta11
New User
Joined: 21 Mar 2007 Posts: 9 Location: United states
|
|
|
|
is there any limitation on the record length? I am using a file of 1000 bytes to send an email which is working perfectly fine...not sure if 1500 works. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
From RFC 2821, the SMTP standard:
Quote: |
text line
The maximum total length of a text line including the <CRLF> is
1000 characters (not counting the leading dot duplicated for
transparency). This number may be increased by the use of SMTP
Service Extensions.
|
I have had problems sending emails with more than 1000 characters in them -- they may go but usually don't. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
more than 1000 characters in them |
that's 1000 characters per line in them ... sigh ... at least it's Friday |
|
Back to top |
|
|
|