View previous topic :: View next topic |
Author |
Message |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Thu Jun 14, 2018 8:40 am Post subject: Sending email via JCL |
|
|
Okay, after googling here and there, I've hit a problem. First of all, let me show the JCL that's working
Code: |
//job card
//*
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,CSSMTP)
//SYSUT1 DD DISP=SHR,DSN=myuser.LDEV1.JCL(MIME)
//*
//SYSOUT DD SYSOUT=*
//*
|
and the member pointed to contains
Quote: |
HELO xxxx
MAIL FROM:<SENDMAIL@xx>
RCPT TO:<michael.simpson@xx>
DATA
from:ITEST@xx
to:michael.simpson@xx
Subject: From http://planetmvs.com/mvsmail/#HTMLMAIL
MIME-Version: 1.0
Content-type: text/html
<font face="Courier" size="+2" color=blue>
This is Courier font in blue</font>
<br><br>
<font face="Arial" size="+3" color=red>
This is the Arial font in red</font>
|
This works fine and I receive the mail in my Outlook inbox.
The trouble arises if I try and include myuser.LDEV1.JCL(MIME) inline in my JCL - nothing is ever sent.
The subject specified in the file above is where I started experimenting, and there there's an example of inline HTML code being used to format the email.
Does anyone have an idea of why this isn't working ?
Aaaaaaarghhhh
Only forgot to look in positions 73-80 (which were numbered). As soon as I removed those, it worked fine. _________________ Michael |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Thu Jun 14, 2018 12:05 pm Post subject: Re: Sending email via JCL |
|
|
misi01 wrote: | Aaaaaaarghhhh
Only forgot to look in positions 73-80 (which were numbered). As soon as I removed those, it worked fine. |
misi01,
May be you need to have a bigger session screen size. I usually have a Screensize of 45x155
This will give me the option of looking stuff beyond the normal 80 bytes _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Mon Jun 18, 2018 2:31 am Post subject: |
|
|
Good idea, but the emulator we have (EXTRA!) won't allow more than 80 characters. _________________ Michael |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Mon Jun 18, 2018 11:11 am Post subject: |
|
|
misi01 wrote: | Good idea, but the emulator we have (EXTRA!) won't allow more than 80 characters. |
Misi01,
You can edit the .ws file and put in your own screen size (max is 255 X 255)
ScreenSize=45×145 _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|