View previous topic :: View next topic
|
Author |
Message |
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hello,
With reference to the post on this link,
I tried to send a RTF mail from mainframe.
What happened is ? i got the RTF tags sent to me as a message from mainframe.
MS Outlook, Instead of using the tags to display the message. It showed me the tags. Because, it is sent as a message from mainframe. I thought i will use the tags.
The mail which came from mainframe is a PLAIN TEXT mail. Is there any options/parameter
of sending a mail as a rich text.
Can you guyz suggest me a procedure ? for doing so.......
How does this work ?
This is my JCL,
Code: |
//HXSULLA JOB (T,TEST),'SUSHANTH-LLOYDS',MSGCLASS=X,CLASS=B,
// NOTIFY=HXSULL
//********************* COMMENTS *********************************
//** MAIL MF ***
//** ***
//****************************************************************
//*....................................................................
//BLD$CARD EXEC PGM=BLD$CARD,COND=(4,LT), * EMAIL1 CARD
// PARM=('TO= XME,SUSHANTH BOBBY \',
// 'FROM= XME,MEERA RAJ \',
// 'DESCRIPTION= TESTING ')
//CONTROL DD DSN=&&LABEL1,DISP=(,PASS),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920),
// UNIT=VIO,SPACE=(TRK,(1,1))
//SYSOUT DD SYSOUT=*
//*....................................................................
//*********************************************************************
//* SEND EMAIL TO PLAN ADMIN LOAD SUPPORT IF FILE NOT EMPTY
//*********************************************************************
//TSOSTEP EXEC PGM=IKJEFT01,PARM='%EMAILBAT'
//SYSUADS DD DISP=SHR,DSN=SYS1.UADS
//SYSEXEC DD DISP=SHR,DSN=NLV1.EXECLIB
//SYSABEND DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY
//LABEL DD DSN=&&LABEL1,DISP=(OLD,DELETE)
//INFILE DD DSN=HXSULL.EMAIL.TEST, <------RTF TAGs
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST1, <------Message
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST2, <------RTF Tags
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST3, <------Message
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST4,
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST5,
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST6,
// DISP=SHR
// DD DSN=HXSULL.EMAIL.TEST7,
// DISP=SHR
//ATTACH1 DD DSN=HXSULL.QUERY.TEST,
// DISP=SHR
//********************************************************************** |
This is mail message i got from mainframe,
Code: |
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl
{\f0\fswiss\fprq2\fcharset0 Century Gothic;} {\f1\fswiss\fcharset0 Arial;} {\f2\froman\fprq2\fcharset0 Palatino Linotype;} {\f3\froman\fprq2\fcharset0 Baskerville Old Face;}} {\*\generator Msftedit 5.41.15.1507;} \viewkind4\uc1\pard\ul\f0\fs60 HEADING \par \ulnone\b\f1\fs20\par
\f2\fs26
Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages **\par Messages ** Messages ** Messages ** Messages ** Messages ** \f3\fs30 \line\line\f2 Thank You, \b0\i\fs40\par
\fs26
Sushanth Bobby
\par
} |
Thank You In Advance,
Sushanth Bobby |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You should send it as an attachemt, suffixed by RTF.
O. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
O,
By default the attachment comes as a text file(ATTACH.txt). How to suffix it with RTF ? when sending the mail.
Sushanth |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
What does your %EMAILBAT program do? |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Pedro,
That is a REXX program we use to send emails from mainframe in our shop.
Sushanth |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi guyz,
I asked my SUPPORT TEAM regarding the suffix for the attachment, is there something like an additional parameter where we can specify the EXTension of the attachement file.
SUPPORT TEAM said that attachement only come in .TXT format in our shop.
Thank You,
Sushanth Bobby |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Quote: |
SUPPORT TEAM said that attachement only come in .TXT format in our shop. |
That is not normal. I thought it used the suffix of the dataset being sent.
If you have a requirement, your support team should be able to oblige. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can send it as an attached TXT file, and in your PC, rename it to RTF.
O. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
O,
That is exactly the samething my support team suggested.
Thank You,
Sushanth Bobby |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You might want to ask them for the meaning of the word "Support" in their name :-)
O. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Many places have excellent support groups, so the following is not universal.
Unfortunately, at some of the places i find myself, "support" is where one goes and is told why something cannot be done (as one has already discovered it doesn't do what is desired).
And fwiw - "it can't be done" almost always translates to "we don't know how". . .
d |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Quote: |
What does your %EMAILBAT program do? |
I guess my real question was: what command or program is issued to send emails? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
I belong to Support team, So i will offer some support
We offer premium services so send the cash to my paypal account..he he he... (e-addr removed@gmail.com)
U can try this..
Code: |
HELO TMVSC.TSL
MAIL FROM:<MAINFRAME@TXXXX.COM>
RCPT TO: <VASANTH.SHANMUGAM@UK.TXXXX.COM>
DATA
FROM: MAINFRAME
TO: DENVER SUPPORT
SUBJECT: HIGHLY CONFIDENTIAL DATA
MIME-VERSION: 1.0;
CONTENT-TYPE: TEXT/RICH TEXT;
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TIMINGS.RTF |
<<<<<RTF TAGS AND THE REST OF THE EMAIL COMES HERE>>>>>>>
U can use the name TIMINGS.RTF or anything.doc |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Pedro,
Quote: |
what command or program is issued to send emails? |
JCL sends the mailing address, message & attachment to a REXX program, which takes care of the mailing process. I don't have access to the REXX program.
Sushanth |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Its hard to debug a 'black box' program. |
|
Back to top |
|
|
|