Discussion:
Internet Technician call -- using REXX to generate email
(too old to reply)
Sevetson, Phil
2015-11-12 22:02:09 UTC
Permalink
Raw Message
Internet Technician call, please.

My Google-Fu has utterly failed me. I have the need to generate an email message as program output on the mainframe. I have a mail server, and a basic REXX process which sends text (I chopped up SMTPNOTE and forced it to do what I wanted to, within its limits), but the HTML tags which I attempted to insert into the stream were reprinted as text (and ignored as tags) by the receiving client.

What I get at my workstation's Outlook client right now is the tags, as text, then the content, in Arial and proportional-space, which completely wrecks the needed column formatting. Then, of course, the closing tags.

All search variations of "create an email message", including "create an email message from scratch", have not worked for me -- I keep finding various mail services' advice on how to create an email message _using their tools on their servers._ This obviously doesn't work when the place I need to create the email is a large IBM mainframe.

Does anyone know what the inline text/tags/commands/what-have-you is to tell a receiving mail client that I want it to accept HTML tags? Or where I might go and what search terms I might use to research this? I can stuff anything into the mailer using REXX, but obviously if the receiving client doesn't recognize it, I'm not going to achieve the desired visual effect.

--Phil Sevetson
***@fisa.nyc.gov<mailto:***@fisa.nyc.gov>
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001


----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Grinsell, Don
2015-11-12 22:11:52 UTC
Permalink
Raw Message
Did you include appropriate mime tags as part of the message?

HELO XXXX
MAIL FROM: <***@mt.gov>
RCPT TO: <***@mt.gov>
DATA
MIME-Version: 1.0
From: "Don Grinsell"<***@mt.gov>
To: "Don Grinsell"<***@mt.gov>
Subject: Test MIME message from z/OS batch using SMTP
Content-type: multipart/mixed;
boundary=unique-boundary-1

This is the preamble area of a multipart message. Mail readers
that understand multipart format should ignore this preamble.
--unique-boundary-1
Content-type: text/html

<p>Greetings from the mainframe.</p>

<p><font face="Courier" size="+2" color=blue>
This is Courier font in blue.</font></p>

<p><font face="Arial" size="+4" color=red>
This is Arial font in red.</font></p>

<p>This is the default font and default color.</p>

<p>
<a href="http://www.mt.gov/">State of Montana Home Page</a>

QUIT

--

Donald Grinsell
State of Montana
406-444-2983
***@mt.gov

"Prism: A place for light waves that commit minor refractions."
~ B.C. by Johnny Hart
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an email
message as program output on the mainframe. I have a mail server, and a
basic REXX process which sends text (I chopped up SMTPNOTE and forced it
to do what I wanted to, within its limits), but the HTML tags which I
attempted to insert into the stream were reprinted as text (and ignored as
tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags, as text,
then the content, in Arial and proportional-space, which completely wrecks
the needed column formatting. Then, of course, the closing tags.
All search variations of "create an email message", including "create an email
message from scratch", have not worked for me -- I keep finding various mail
services' advice on how to create an email message _using their tools on
their servers._ This obviously doesn't work when the place I need to create
the email is a large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags? Or where I
might go and what search terms I might use to research this? I can stuff
anything into the mailer using REXX, but obviously if the receiving client
doesn't recognize it, I'm not going to achieve the desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Grinsell, Don
2015-11-12 22:19:44 UTC
Permalink
Raw Message
All of the gory details are here:

http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html

Although Google should be able to give you a few easier to follow references. Try searching on mime email format.

Regards.

--

Donald Grinsell
State of Montana
406-444-2983
***@mt.gov

"There are only two lasting bequests we can hope to give our children. One of these is roots, the other wings."
~ Hodding Carter
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:15 PM
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate
email
Nope. Didn't know how. I'll use this as a template, as I expect you intended.
Is there a reference manual for this stuff, and is it at all readable by a
reasonably literate person who isn't familiar with the underpinnings of the
Net?
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
-----Original Message-----
Behalf Of Grinsell, Don
Sent: Thursday, November 12, 2015 5:12 PM
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate
email
Did you include appropriate mime tags as part of the message?
HELO XXXX
DATA
MIME-Version: 1.0
Subject: Test MIME message from z/OS batch using SMTP
Content-type: multipart/mixed;
boundary=unique-boundary-1
This is the preamble area of a multipart message. Mail readers
that understand multipart format should ignore this preamble.
--unique-boundary-1
Content-type: text/html
<p>Greetings from the mainframe.</p>
<p><font face="Courier" size="+2" color=blue>
This is Courier font in blue.</font></p>
<p><font face="Arial" size="+4" color=red>
This is Arial font in red.</font></p>
<p>This is the default font and default color.</p>
<p>
<a href="http://www.mt.gov/">State of Montana Home Page</a>
QUIT
--
Donald Grinsell
State of Montana
406-444-2983
"Prism: A place for light waves that commit minor refractions."
~ B.C. by Johnny Hart
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits), but
the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as
tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags,
as text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to achieve the
desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Sevetson, Phil
2015-11-12 22:20:48 UTC
Permalink
Raw Message
Thanks. Off to experiment.

--Phil Sevetson
***@fisa.nyc.gov
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001


-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Grinsell, Don
Sent: Thursday, November 12, 2015 5:20 PM
To: TSO-***@VM.MARIST.EDU
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email

All of the gory details are here:

http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html

Although Google should be able to give you a few easier to follow references. Try searching on mime email format.

Regards.

--

Donald Grinsell
State of Montana
406-444-2983
***@mt.gov

"There are only two lasting bequests we can hope to give our children. One of these is roots, the other wings."
~ Hodding Carter
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:15 PM
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to
generate email
Nope. Didn't know how. I'll use this as a template, as I expect you intended.
Is there a reference manual for this stuff, and is it at all readable
by a reasonably literate person who isn't familiar with the
underpinnings of the Net?
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
-----Original Message-----
Behalf Of Grinsell, Don
Sent: Thursday, November 12, 2015 5:12 PM
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to
generate email
Did you include appropriate mime tags as part of the message?
HELO XXXX
DATA
MIME-Version: 1.0
Subject: Test MIME message from z/OS batch using SMTP
Content-type: multipart/mixed;
boundary=unique-boundary-1
This is the preamble area of a multipart message. Mail readers that
understand multipart format should ignore this preamble.
--unique-boundary-1
Content-type: text/html
<p>Greetings from the mainframe.</p>
<p><font face="Courier" size="+2" color=blue> This is Courier font in
blue.</font></p>
<p><font face="Arial" size="+4" color=red> This is Arial font in
red.</font></p>
<p>This is the default font and default color.</p>
<p>
<a href="http://www.mt.gov/">State of Montana Home Page</a>
QUIT
--
Donald Grinsell
State of Montana
406-444-2983
"Prism: A place for light waves that commit minor refractions."
~ B.C. by Johnny Hart
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits),
but the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as
tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags,
as text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including
"create an email message from scratch", have not worked for me -- I
keep finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously
doesn't work when the place I need to create the email is a large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but
obviously if the receiving client doesn't recognize it, I'm not
going to achieve the
desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
--------------------------------------------------------------------
-- For TSO-REXX subscribe / signoff / archive access instructions,
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Sevetson, Phil
2015-11-12 22:32:14 UTC
Permalink
Raw Message
Nope. Didn't know how. I'll use this as a template, as I expect you intended.

Is there a reference manual for this stuff, and is it at all readable by a reasonably literate person who isn't familiar with the underpinnings of the Net?

--Phil Sevetson
***@fisa.nyc.gov
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001


-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Grinsell, Don
Sent: Thursday, November 12, 2015 5:12 PM
To: TSO-***@VM.MARIST.EDU
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email

Did you include appropriate mime tags as part of the message?

HELO XXXX
MAIL FROM: <***@mt.gov>
RCPT TO: <***@mt.gov>
DATA
MIME-Version: 1.0
From: "Don Grinsell"<***@mt.gov>
To: "Don Grinsell"<***@mt.gov>
Subject: Test MIME message from z/OS batch using SMTP
Content-type: multipart/mixed;
boundary=unique-boundary-1

This is the preamble area of a multipart message. Mail readers
that understand multipart format should ignore this preamble.
--unique-boundary-1
Content-type: text/html

<p>Greetings from the mainframe.</p>

<p><font face="Courier" size="+2" color=blue>
This is Courier font in blue.</font></p>

<p><font face="Arial" size="+4" color=red>
This is Arial font in red.</font></p>

<p>This is the default font and default color.</p>

<p>
<a href="http://www.mt.gov/">State of Montana Home Page</a>

QUIT

--

Donald Grinsell
State of Montana
406-444-2983
***@mt.gov

"Prism: A place for light waves that commit minor refractions."
~ B.C. by Johnny Hart
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits), but
the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as
tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags,
as text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to achieve the desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Lizette Koehler
2015-11-12 22:23:41 UTC
Permalink
Raw Message
Have you looked at XMITP? Can do lots of things easily to send email from the
Mainframe
http://lbdsoftware.com/xmitip.html


Or do you have SAS? It has a nice email function as well.

Or you might try posting to IBMMAIN list as well. They might have more options.

To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html


Lizette
-----Original Message-----
Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an email
message
as program output on the mainframe. I have a mail server, and a basic REXX
process
which sends text (I chopped up SMTPNOTE and forced it to do what I wanted to,
within its limits), but the HTML tags which I attempted to insert into the
stream were
reprinted as text (and ignored as tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags, as text,
then the
content, in Arial and proportional-space, which completely wrecks the needed
column formatting. Then, of course, the closing tags.
All search variations of "create an email message", including "create an email
message from scratch", have not worked for me -- I keep finding various mail
services' advice on how to create an email message _using their tools on their
servers._ This obviously doesn't work when the place I need to create the
email is a
large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is to tell a
receiving mail client that I want it to accept HTML tags? Or where I might go
and
what search terms I might use to research this? I can stuff anything into the
mailer
using REXX, but obviously if the receiving client doesn't recognize it, I'm
not going to
achieve the desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Sevetson, Phil
2015-11-12 22:27:49 UTC
Permalink
Raw Message
I'm pretty much limited to in-house solutions. I'll look at lbd, though. We do have SAS, but are being pressured to eliminate dependency on it. You know where that goes, of course.

I'll check with IBMMAIN if I don't get the results I'm hoping for from Don G.'s example code; I started here because the existing code is in REXX.

--Phil Sevetson
***@fisa.nyc.gov
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001


-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Lizette Koehler
Sent: Thursday, November 12, 2015 5:24 PM
To: TSO-***@VM.MARIST.EDU
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email

Have you looked at XMITP? Can do lots of things easily to send email from the Mainframe http://lbdsoftware.com/xmitip.html


Or do you have SAS? It has a nice email function as well.

Or you might try posting to IBMMAIN list as well. They might have more options.

To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html


Lizette
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an email
message
as program output on the mainframe. I have a mail server, and a basic REXX
process
which sends text (I chopped up SMTPNOTE and forced it to do what I
wanted to, within its limits), but the HTML tags which I attempted to
insert into the
stream were
reprinted as text (and ignored as tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags, as text,
then the
content, in Arial and proportional-space, which completely wrecks the
needed column formatting. Then, of course, the closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the
email is a
large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go
and
what search terms I might use to research this? I can stuff anything into the
mailer
using REXX, but obviously if the receiving client doesn't recognize it, I'm
not going to
achieve the desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Bob Bridges
2016-04-09 15:19:09 UTC
Permalink
Raw Message
It's been a while since I looked, but I believe XMITIP is written entirely
in REXX. This means you can put it in your own REXX library, just as though
you'd written it yourself - no need to worry about whether it's in-house.

---
Bob Bridges
***@gmail.com, cell 336 382-7313
***@InfoSecInc.com

/* Law #15 of combat operations: The enemy invariably attacks on two
occasions:
- When they're ready.
- When you're not. */

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of
Sevetson, Phil
Sent: Thursday, November 12, 2015 17:28

I'm pretty much limited to in-house solutions. I'll look at lbd, though. We
do have SAS, but are being pressured to eliminate dependency on it. You know
where that goes, of course.

I'll check with IBMMAIN if I don't get the results I'm hoping for from Don
G.'s example code; I started here because the existing code is in REXX.

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of
Lizette Koehler
Sent: Thursday, November 12, 2015 5:24 PM

Have you looked at XMITP? Can do lots of things easily to send email from
the Mainframe http://lbdsoftware.com/xmitip.html

Or do you have SAS? It has a nice email function as well.

Or you might try posting to IBMMAIN list as well. They might have more
options.

To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html
-----Original Message-----
From: Sevetson, Phil
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits), but
the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as tags) by the receiving client. What
I get at my workstation's Outlook client right now is the tags, as
text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM
mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to achieve
the desired visual effect.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Roberto Halais
2016-04-09 15:36:24 UTC
Permalink
Raw Message
Are you using CSSMTP?

Because it's the one I use and allows HTML.

I had problems with the old z/os smtp.
Post by Bob Bridges
It's been a while since I looked, but I believe XMITIP is written entirely
in REXX. This means you can put it in your own REXX library, just as though
you'd written it yourself - no need to worry about whether it's in-house.
---
Bob Bridges
/* Law #15 of combat operations: The enemy invariably attacks on two
- When they're ready.
- When you're not. */
-----Original Message-----
Sevetson, Phil
Sent: Thursday, November 12, 2015 17:28
I'm pretty much limited to in-house solutions. I'll look at lbd, though. We
do have SAS, but are being pressured to eliminate dependency on it. You know
where that goes, of course.
I'll check with IBMMAIN if I don't get the results I'm hoping for from Don
G.'s example code; I started here because the existing code is in REXX.
-----Original Message-----
Lizette Koehler
Sent: Thursday, November 12, 2015 5:24 PM
Have you looked at XMITP? Can do lots of things easily to send email from
the Mainframe http://lbdsoftware.com/xmitip.html
Or do you have SAS? It has a nice email function as well.
Or you might try posting to IBMMAIN list as well. They might have more options.
To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html
-----Original Message-----
From: Sevetson, Phil
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits), but
the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as tags) by the receiving client. What
I get at my workstation's Outlook client right now is the tags, as
text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM
mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to achieve
the desired visual effect.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
--
“Live as if you were to die tomorrow. Learn as if you were to live
forever.”
– Mahatma Gandhi

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Stuart Holland
2016-04-09 17:59:12 UTC
Permalink
Raw Message
What you need is to insert "content" tags to tell the mail reader what
it is you are sending. You can look up the format by searching on
internet RFCs for mail. Basically, you will tell it it is text/html. If
you have different sections (such as some plain text that you don't want
treated as html), you will also specify a way to end the section. I
don't have any samples handy, but if I find one later, I will post it.
Post by Bob Bridges
It's been a while since I looked, but I believe XMITIP is written entirely
in REXX. This means you can put it in your own REXX library, just as though
you'd written it yourself - no need to worry about whether it's in-house.
---
Bob Bridges
/* Law #15 of combat operations: The enemy invariably attacks on two
- When they're ready.
- When you're not. */
-----Original Message-----
Sevetson, Phil
Sent: Thursday, November 12, 2015 17:28
I'm pretty much limited to in-house solutions. I'll look at lbd, though. We
do have SAS, but are being pressured to eliminate dependency on it. You know
where that goes, of course.
I'll check with IBMMAIN if I don't get the results I'm hoping for from Don
G.'s example code; I started here because the existing code is in REXX.
-----Original Message-----
Sent: Thursday, November 12, 2015 5:24 PM
Have you looked at XMITP? Can do lots of things easily to send email from
the Mainframe http://lbdsoftware.com/xmitip.html
Or do you have SAS? It has a nice email function as well.
Or you might try posting to IBMMAIN list as well. They might have more options.
To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html
-----Original Message-----
From: Sevetson, Phil
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits), but
the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as tags) by the receiving client. What
I get at my workstation's Outlook client right now is the tags, as
text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM
mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to achieve
the desired visual effect.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Sambataro, Anthony [E] , NIH/NBS
2016-04-11 11:07:14 UTC
Permalink
Raw Message
I have an example, I haven't used it for a while, but it did work

//STEP010 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=A
//SYSUT2 DD SYSOUT=(M,SMTP),DEST=NIHJES2,FREE=CLOSE
//SYSUT1 DD *
helo userid
mail from: <***@address>
// DD DSN=hlq.EMAIL.ADDRESS(SUPPRCT),DISP=SHR
// DD *
data
// DD DSN=hlq.EMAIL.ADDRESS(SUPPORT),DISP=SHR
// DD *
MESSAGE-ID: <***@hostname>
MIME-VERSION: 1.0
Content-Type: multipart/related; boundary="n"; type=Text/HTML

--n
Content-type: text/html; charset="us-ascii"
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html40/strict.dtd">
<html lang="en">
<head></head>
<body>
<img src=cid:ALERT001 />
<PRE>
// DD DSN=hlq.indsn,DISP=SHR
// DD *
</PRE>
</body></html>

--n
Content-type: image/JPEG; name="ALERT.JPEG"
Content-Transfer-Encoding: Base64
Content-ID: ALERT001
Content-Disposition: inline; FileName="ALERT.JPEG"

// DD DSN=hlg.ALERT.B64,DISP=SHR
// DD *
--n--
//

-----Original Message-----
From: Stuart Holland [mailto:***@OUTLOOK.COM]
Sent: Saturday, April 09, 2016 1:58 PM
To: TSO-***@VM.MARIST.EDU
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email

What you need is to insert "content" tags to tell the mail reader what it is you are sending. You can look up the format by searching on internet RFCs for mail. Basically, you will tell it it is text/html. If you have different sections (such as some plain text that you don't want treated as html), you will also specify a way to end the section. I don't have any samples handy, but if I find one later, I will post it.
Post by Bob Bridges
It's been a while since I looked, but I believe XMITIP is written
entirely in REXX. This means you can put it in your own REXX library,
just as though you'd written it yourself - no need to worry about whether it's in-house.
---
Bob Bridges
/* Law #15 of combat operations: The enemy invariably attacks on two
- When they're ready.
- When you're not. */
-----Original Message-----
Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 17:28
I'm pretty much limited to in-house solutions. I'll look at lbd,
though. We do have SAS, but are being pressured to eliminate
dependency on it. You know where that goes, of course.
I'll check with IBMMAIN if I don't get the results I'm hoping for from
Don G.'s example code; I started here because the existing code is in REXX.
-----Original Message-----
Sent: Thursday, November 12, 2015 5:24 PM
Have you looked at XMITP? Can do lots of things easily to send email
from the Mainframe http://lbdsoftware.com/xmitip.html
Or do you have SAS? It has a nice email function as well.
Or you might try posting to IBMMAIN list as well. They might have more options.
To join if you have not done so, use this URL
General MVS IBM-Main https://listserv.ua.edu/archives/ibm-main.html
-----Original Message-----
From: Sevetson, Phil
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an
email message as program output on the mainframe. I have a mail
server, and a basic REXX process which sends text (I chopped up
SMTPNOTE and forced it to do what I wanted to, within its limits),
but the HTML tags which I attempted to insert into the stream were
reprinted as text (and ignored as tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags,
as text, then the content, in Arial and proportional-space, which
completely wrecks the needed column formatting. Then, of course, the
closing tags.
All search variations of "create an email message", including "create
an email message from scratch", have not worked for me -- I keep
finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't
work when the place I need to create the email is a large IBM
mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is
to tell a receiving mail client that I want it to accept HTML tags?
Or where I might go and what search terms I might use to research
this? I can stuff anything into the mailer using REXX, but obviously
if the receiving client doesn't recognize it, I'm not going to
achieve the desired visual effect.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Robert Zenuk
2015-11-12 22:24:35 UTC
Permalink
Raw Message
I googled "rexx email" and got a bunch of hits...

This link has an example of HTML email

http://enterprisesystemsmedia.com/article/sending-html-email-from-your-mainframe/2#sr=g&m=o&cp=or&ct=-tmc&st=(opu%20qspwjefe)&ts=1447366436


Rob



-----Original Message-----
From: Sevetson, Phil <***@FISA.NYC.GOV>
To: TSO-REXX <TSO-***@VM.MARIST.EDU>
Sent: Thu, Nov 12, 2015 3:01 pm
Subject: Internet Technician call -- using REXX to generate email


Internet Technician call, please.

My Google-Fu has utterly failed me. I have
the need to generate an email message as program output on the mainframe. I have
a mail server, and a basic REXX process which sends text (I chopped up SMTPNOTE
and forced it to do what I wanted to, within its limits), but the HTML tags
which I attempted to insert into the stream were reprinted as text (and ignored
as tags) by the receiving client.

What I get at my workstation's Outlook
client right now is the tags, as text, then the content, in Arial and
proportional-space, which completely wrecks the needed column formatting. Then,
of course, the closing tags.

All search variations of "create an email
message", including "create an email message from scratch", have not worked for
me -- I keep finding various mail services' advice on how to create an email
message _using their tools on their servers._ This obviously doesn't work when
the place I need to create the email is a large IBM mainframe.

Does anyone
know what the inline text/tags/commands/what-have-you is to tell a receiving
mail client that I want it to accept HTML tags? Or where I might go and what
search terms I might use to research this? I can stuff anything into the mailer
using REXX, but obviously if the receiving client doesn't recognize it, I'm not
going to achieve the desired visual effect.

--Phil
Sevetson
***@fisa.nyc.gov<mailto:***@fisa.nyc.gov>
City of New
York / Financial Info Svcs Agcy
New York, NY USA
10001


----------------------------------------------------------------------
For
TSO-REXX subscribe / signoff / archive access instructions,
send email to
***@VM.MARIST.EDU with the message: INFO TSO-REXX



----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Kopischke, David G.
2015-11-12 22:30:17 UTC
Permalink
Raw Message
Phil,

I use a GENER to copy a file to SYSOUT=(B,SMTP). The following is the file. The header and trailer are a variable blocked PDS member. There is a file attachment concatenated in the middle.

The blank lines are significant, but I don't know why. I put this together several years ago.

Once I got it working, I started playing with removing blank lines and adjusting text for formatting.



HELO <Host sending the E-Mail> <-- "<" and ">" are NOT part of the text string
MAIL FROM: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
RCPT TO: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
RCPT TO: <Another_E-***@AnotherDomain.com> <-- "<" and ">" are part of the text string
DATA
TO: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
TO: <Another_E-***@AnotherDomain.com> <-- "<" and ">" are part of the text string
FROM: Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
SUBJECT: Your E-Mail Subject Line From here on down is the E-Mail substance...
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===_boundary_==="
<-- Blank Line
--===_boundary_===
Content-Type: text/plain; charset="us-ascii"
<-- Blank Line
Write the content of your E-Mail here...
<-- Blank Line
--===_boundary_===
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="Name_You_Want_The_Attachment_to_Take.txt"
<-- Blank Line
<E-Mail attachment file is concatenated here> <-- This entire line is not part of the mail - Just notes where the concatenation occurs
<-- Blank Line
--===_boundary_===
<-- Blank Line
.
QUIT
<-- Blank Line




-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
To: TSO-***@VM.MARIST.EDU
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email [ EXTERNAL ]

Internet Technician call, please.

My Google-Fu has utterly failed me. I have the need to generate an email message as program output on the mainframe. I have a mail server, and a basic REXX process which sends text (I chopped up SMTPNOTE and forced it to do what I wanted to, within its limits), but the HTML tags which I attempted to insert into the stream were reprinted as text (and ignored as tags) by the receiving client.

What I get at my workstation's Outlook client right now is the tags, as text, then the content, in Arial and proportional-space, which completely wrecks the needed column formatting. Then, of course, the closing tags.

All search variations of "create an email message", including "create an email message from scratch", have not worked for me -- I keep finding various mail services' advice on how to create an email message _using their tools on their servers._ This obviously doesn't work when the place I need to create the email is a large IBM mainframe.

Does anyone know what the inline text/tags/commands/what-have-you is to tell a receiving mail client that I want it to accept HTML tags? Or where I might go and what search terms I might use to research this? I can stuff anything into the mailer using REXX, but obviously if the receiving client doesn't recognize it, I'm not going to achieve the desired visual effect.

--Phil Sevetson
***@fisa.nyc.gov<mailto:***@fisa.nyc.gov>
City of New York / Financial Info Svcs Agcy New York, NY USA 10001


----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or disclose the content of all email communications.

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Sevetson, Phil
2015-11-12 22:37:44 UTC
Permalink
Raw Message
David,

Thank you. I did something similar to that about twelve years ago (give or take a couple of years) but had completely forgotten about the technique. I'll see whether it works at this installation, as well.

All,

I'll have to put off further research into alternatives until tomorrow. The City's Internet gateway went down about fifteen minutes ago. Picture about a hundred thousand people (pretty much every desk job in the City government of New York) being unable to surf the Net.

--Phil Sevetson
***@fisa.nyc.gov
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001


-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Kopischke, David G.
Sent: Thursday, November 12, 2015 5:30 PM
To: TSO-***@VM.MARIST.EDU
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email

Phil,

I use a GENER to copy a file to SYSOUT=(B,SMTP). The following is the file. The header and trailer are a variable blocked PDS member. There is a file attachment concatenated in the middle.

The blank lines are significant, but I don't know why. I put this together several years ago.

Once I got it working, I started playing with removing blank lines and adjusting text for formatting.



HELO <Host sending the E-Mail> <-- "<" and ">" are NOT part of the text string
MAIL FROM: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
RCPT TO: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
RCPT TO: <Another_E-***@AnotherDomain.com> <-- "<" and ">" are part of the text string
DATA
TO: <Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
TO: <Another_E-***@AnotherDomain.com> <-- "<" and ">" are part of the text string
FROM: Your_E-***@YourDomain.com> <-- "<" and ">" are part of the text string
SUBJECT: Your E-Mail Subject Line From here on down is the E-Mail substance...
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===_boundary_==="
<-- Blank Line --===_boundary_===
Content-Type: text/plain; charset="us-ascii"
<-- Blank Line Write the content of your E-Mail here...
<-- Blank Line --===_boundary_===
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="Name_You_Want_The_Attachment_to_Take.txt"
<-- Blank Line
<E-Mail attachment file is concatenated here> <-- This entire line is not part of the mail - Just notes where the concatenation occurs
<-- Blank Line --===_boundary_===
<-- Blank Line .
QUIT
<-- Blank Line




-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of Sevetson, Phil
Sent: Thursday, November 12, 2015 3:02 PM
To: TSO-***@VM.MARIST.EDU
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email [ EXTERNAL ]

Internet Technician call, please.

My Google-Fu has utterly failed me. I have the need to generate an email message as program output on the mainframe. I have a mail server, and a basic REXX process which sends text (I chopped up SMTPNOTE and forced it to do what I wanted to, within its limits), but the HTML tags which I attempted to insert into the stream were reprinted as text (and ignored as tags) by the receiving client.

What I get at my workstation's Outlook client right now is the tags, as text, then the content, in Arial and proportional-space, which completely wrecks the needed column formatting. Then, of course, the closing tags.

All search variations of "create an email message", including "create an email message from scratch", have not worked for me -- I keep finding various mail services' advice on how to create an email message _using their tools on their servers._ This obviously doesn't work when the place I need to create the email is a large IBM mainframe.

Does anyone know what the inline text/tags/commands/what-have-you is to tell a receiving mail client that I want it to accept HTML tags? Or where I might go and what search terms I might use to research this? I can stuff anything into the mailer using REXX, but obviously if the receiving client doesn't recognize it, I'm not going to achieve the desired visual effect.

--Phil Sevetson
***@fisa.nyc.gov<mailto:***@fisa.nyc.gov>
City of New York / Financial Info Svcs Agcy New York, NY USA 10001


----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or disclose the content of all email communications.

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Steve Coalbran
2015-11-14 12:23:42 UTC
Permalink
Raw Message
SMTP writer is rarely active as I have discovered.What works for me at an IBM DEMO site will not (probably) work at a Customer site./S
Date: Thu, 12 Nov 2015 22:37:48 +0000
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email
David,
Thank you. I did something similar to that about twelve years ago (give or take a couple of years) but had completely forgotten about the technique. I'll see whether it works at this installation, as well.
All,
I'll have to put off further research into alternatives until tomorrow. The City's Internet gateway went down about fifteen minutes ago. Picture about a hundred thousand people (pretty much every desk job in the City government of New York) being unable to surf the Net.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy
New York, NY USA 10001
-----Original Message-----
Sent: Thursday, November 12, 2015 5:30 PM
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email
Phil,
I use a GENER to copy a file to SYSOUT=(B,SMTP). The following is the file. The header and trailer are a variable blocked PDS member. There is a file attachment concatenated in the middle.
The blank lines are significant, but I don't know why. I put this together several years ago.
Once I got it working, I started playing with removing blank lines and adjusting text for formatting.
HELO <Host sending the E-Mail> <-- "<" and ">" are NOT part of the text string
DATA
SUBJECT: Your E-Mail Subject Line From here on down is the E-Mail substance...
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===_boundary_==="
<-- Blank Line --===_boundary_===
Content-Type: text/plain; charset="us-ascii"
<-- Blank Line Write the content of your E-Mail here...
<-- Blank Line --===_boundary_===
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="Name_You_Want_The_Attachment_to_Take.txt"
<-- Blank Line
<E-Mail attachment file is concatenated here> <-- This entire line is not part of the mail - Just notes where the concatenation occurs
<-- Blank Line --===_boundary_===
<-- Blank Line .
QUIT
<-- Blank Line
-----Original Message-----
Sent: Thursday, November 12, 2015 3:02 PM
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email [ EXTERNAL ]
Internet Technician call, please.
My Google-Fu has utterly failed me. I have the need to generate an email message as program output on the mainframe. I have a mail server, and a basic REXX process which sends text (I chopped up SMTPNOTE and forced it to do what I wanted to, within its limits), but the HTML tags which I attempted to insert into the stream were reprinted as text (and ignored as tags) by the receiving client.
What I get at my workstation's Outlook client right now is the tags, as text, then the content, in Arial and proportional-space, which completely wrecks the needed column formatting. Then, of course, the closing tags.
All search variations of "create an email message", including "create an email message from scratch", have not worked for me -- I keep finding various mail services' advice on how to create an email message _using their tools on their servers._ This obviously doesn't work when the place I need to create the email is a large IBM mainframe.
Does anyone know what the inline text/tags/commands/what-have-you is to tell a receiving mail client that I want it to accept HTML tags? Or where I might go and what search terms I might use to research this? I can stuff anything into the mailer using REXX, but obviously if the receiving client doesn't recognize it, I'm not going to achieve the desired visual effect.
--Phil Sevetson
City of New York / Financial Info Svcs Agcy New York, NY USA 10001
----------------------------------------------------------------------
This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or disclose the content of all email communications.
----------------------------------------------------------------------
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Paul Gilmartin
2015-11-15 03:42:32 UTC
Permalink
Raw Message
Post by Steve Coalbran
SMTP writer is rarely active as I have discovered.What works for me at an IBM DEMO site will not (probably) work at a Customer site./S
Is sendmail more generally available on z/OS systems? If not, I'd expect any
site to have acess to port 25 on some connected system. But some programming
required. Easy enough with CMS Pipelines TCPCLIENT stage; more tedious on
z/OS. (I've done the former; not attempted the latter.)

-- gil

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Nims,Alva John , Al
2015-11-15 18:51:00 UTC
Permalink
Raw Message
I could be wrong (like it has never happened before), but SENDMAIL is available as a USS (OMVS) command and I "think" it does NOT use the SMTP server running under MVS (what SMTP writer uses).

Al Nims
Systems Admin/Programmer 3
EI&O
University of Florida
(352) 273-1298

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@vm.marist.edu] On Behalf Of Paul Gilmartin
Sent: Saturday, November 14, 2015 10:42 PM
To: TSO-***@vm.marist.edu
Subject: Re: [TSO-REXX] Internet Technician call -- using REXX to generate email
Post by Steve Coalbran
SMTP writer is rarely active as I have discovered.What works for me at
an IBM DEMO site will not (probably) work at a Customer site./S
Is sendmail more generally available on z/OS systems? If not, I'd expect any site to have acess to port 25 on some connected system. But some programming required. Easy enough with CMS Pipelines TCPCLIENT stage; more tedious on z/OS. (I've done the former; not attempted the latter.)

-- gil

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Paul Gilmartin
2015-11-12 23:26:27 UTC
Permalink
Raw Message
Post by Kopischke, David G.
The blank lines are significant, but I don't know why. I put this together several years ago.
IIRC, RFC 822 requires an *empty* (not just blank) line to terminate
email headers. IBM's SMTP servers may be lax in enforcing this because
of some inane restrictions on empty lines in IBM data sets.

Nonempty blank lines may not be satisfactory to non-IBM SMTP servers.

Only half of Postel's Principle is a good idea.

-- gil

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Robert Garrett
2015-11-13 13:59:26 UTC
Permalink
Raw Message
The "secret sauce" you may be missing is this:
I'm including a sample of how to generate an email that contains both a
plain text and an HTML formatted version:

.
.
(I'm assuming that you have your output DD to smtp allocated to DDNAME:SMTP,
and that you've already QUEUE'ed the beginning headers of your message at
this point.)
.
.
queue 'SUBJECT: This here be my email subject, dude';
queue 'MIME-Version: 1.0';
queue 'Content-Type: multipart/alternative; boundary="BoundaryHere"';

/* Build the Plain Text section */
queue '';
queue '--BoundaryHere';
queue 'Content-Type: text/plain';
queue '';
/* Build plain text body */
...... your code to queue all the lines of your plain text message goes here

/* If HTML format, next built the HTML section headers and body */
if (your logic test to decide if you want to build an HTML formatted section
in addition to plain text or not) then,
do;
queue '';
queue '--BoundaryHere';
queue 'Content-Type: text/html';
queue 'Content-Transfer-Encoding: 7bit';
queue 'Content-Disposition: inline';
queue '';
queue '<body><font face="monospace"><pre>'; /*... or whichever
font you prefer */
......... your code to queue all the lines of your html formatted
message goes here
queue '</pre></font></body>';
end;

/* End of message - marks end of 'last' section we built, whether plaintext
or HTML */
queue '';
queue '--BoundaryHere--';

"EXECIO "QUEUED()" DISKW SMTP (FINIS"; /* write everything out to SMTP all
in one go */
.
.
.
(whatever else you need to do)



-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-***@VM.MARIST.EDU] On Behalf Of
Sevetson, Phil
Sent: Thursday, November 12, 2015 4:02 PM
To: TSO-***@VM.MARIST.EDU
Subject: [TSO-REXX] Internet Technician call -- using REXX to generate email

Internet Technician call, please.

My Google-Fu has utterly failed me. I have the need to generate an email
message as program output on the mainframe. I have a mail server, and a
basic REXX process which sends text (I chopped up SMTPNOTE and forced it to
do what I wanted to, within its limits), but the HTML tags which I attempted
to insert into the stream were reprinted as text (and ignored as tags) by
the receiving client.

What I get at my workstation's Outlook client right now is the tags, as
text, then the content, in Arial and proportional-space, which completely
wrecks the needed column formatting. Then, of course, the closing tags.

All search variations of "create an email message", including "create an
email message from scratch", have not worked for me -- I keep finding
various mail services' advice on how to create an email message _using their
tools on their servers._ This obviously doesn't work when the place I need
to create the email is a large IBM mainframe.

Does anyone know what the inline text/tags/commands/what-have-you is to tell
a receiving mail client that I want it to accept HTML tags? Or where I
might go and what search terms I might use to research this? I can stuff
anything into the mailer using REXX, but obviously if the receiving client
doesn't recognize it, I'm not going to achieve the desired visual effect.

--Phil Sevetson
***@fisa.nyc.gov<mailto:***@fisa.nyc.gov>
City of New York / Financial Info Svcs Agcy New York, NY USA 10001


----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email
to ***@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Loading...