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

Sending RTF mail from mainframe


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Mar 12, 2009 12:23 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 1:20 pm
Reply with quote

You should send it as an attachemt, suffixed by RTF.

O.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Mar 12, 2009 1:37 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Mar 12, 2009 9:17 pm
Reply with quote

What does your %EMAILBAT program do?
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Mar 13, 2009 10:27 am
Reply with quote

Pedro,

That is a REXX program we use to send emails from mainframe in our shop.

Sushanth
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Sat Mar 14, 2009 3:51 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Mar 14, 2009 9:15 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sat Mar 14, 2009 10:34 pm
Reply with quote

You can send it as an attached TXT file, and in your PC, rename it to RTF.

O.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Sun Mar 15, 2009 10:18 pm
Reply with quote

O,
That is exactly the samething my support team suggested.

Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Mar 15, 2009 10:51 pm
Reply with quote

You might want to ask them for the meaning of the word "Support" in their name :-)

O.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Mar 15, 2009 11:44 pm
Reply with quote

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". . . icon_wink.gif

d
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Mar 16, 2009 9:33 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Mar 16, 2009 10:00 pm
Reply with quote

I belong to Support team, So i will offer some support icon_biggrin.gif

We offer premium services so send the cash to my paypal account..he he he... icon_biggrin.gif (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 icon_biggrin.gif
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Mar 17, 2009 3:58 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Mar 17, 2009 9:08 pm
Reply with quote

Its hard to debug a 'black box' program.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top