Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

sending an email whose body contains regular text and an ima

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Tue Sep 01, 2009 9:01 pm    Post subject: sending an email whose body contains regular text and an ima
Reply with quote

Hi Friends,

I want to send an email whose body contains regular text and an image in the beginning of mail page. Please let me know if it is possible to do something like this. We have here HFS also (but i have not used that, but will try). I will manipulate the regular text with HTML tags so that it looks like webpage, but i am not sure how to go about inserting image.

Any suggestions or ideas will really help.

Thanks,
Ajay
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Tue Sep 01, 2009 9:08 pm    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

Quote:
I will manipulate the regular text with HTML tags so that it looks like webpage, but i am not sure how to go about inserting image.


apart the technical aspects, are You / Your organization aware of the issues concerning eMails in HTML format ??

many organizations/users consider HTML formatted eMails as .... SPAM
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Wed Sep 02, 2009 1:43 pm    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

Hi Enrico,

Please suggest the approach that we can follow. It is just an intiative that we want to automate the process of sending such an email.

Any suggestions are welcome.

Thanks,
Ajay
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7992
Location: Bellevue, IA

PostPosted: Wed Sep 02, 2009 3:19 pm    Post subject:
Reply with quote

I have tested a few things and cannot find a combination of MIME options that allow z/OS SMTP to transfer an image file successfully. You may have to rethink your approach, or plan on doing many, many tests to get the parameters correct. I can send text files as attachments but images don't seem to work quite the same.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Sep 02, 2009 6:21 pm    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

Quote:
Please suggest the approach that we can follow.


review the proposalto send eMails in Html format...
as I said before not everybody is goung to appreciate it...

for example, My email rules are to junk HTML formatted emails...
HTML formatted emails are most often annoyances,
I' ve seldom, better never, seen enterprise operative emails in HTML format
in that format the ratio noise to information is too unfavorable to clear communication
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Wed Sep 02, 2009 9:17 pm    Post subject:
Reply with quote

Hi Enrico,

I am using HTML in order to get the color,fonts and other gui features which are found on a non-mainframe/web page. For eg, i want to put background color also in the mail body.

Please suggest if we can do so in mainframe other than using HTML.

Robert: Many thanks for trying out that one for me. But i am not even aware how to transfer an image to mainframe (i have not tried that one till now). Does transferring a gif image in binary mode to a PS file work?

Thanks a lot guys.

-Ajay
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7992
Location: Bellevue, IA

PostPosted: Wed Sep 02, 2009 9:53 pm    Post subject:
Reply with quote

I haven't tried transferring images to MVS files, just to Unix System Services files. GIF and JPEG files transferred in binary mode to USS directories display in web browsers just fine even though they're coming from the mainframe.

And depending upon your mail client, you may or may not be able to get background color in the mail body -- that's not something under your control but under the control of the mail client.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Sep 02, 2009 10:01 pm    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

Quote:
I am using HTML in order to get the color,fonts and other gui features which are found on a non-mainframe/web page. For eg, i want to put background color also in the mail body.


are You listening to what I am telling You or not ?
it is not a technical issue... it is an organizational issue

investigate what are Your company standards for eMail formats icon_question.gif
and after that worry about the technical part
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Thu Sep 03, 2009 11:12 am    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

Quote:

are You listening to what I am telling You or not ?
it is not a technical issue... it is an organizational issue


Enric,

What i am asking is if there is a way to send a formatted mail with colors thru mainframe instead of sending it in HTML format. I got your point it should not be done in HTML format possibly because markup provides an open door to spams and viruses.

Thanks,
Ajay
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Sep 03, 2009 11:58 am    Post subject: Reply to: sending an email whose body contains regular text
Reply with quote

on the PC platform You can usually have the options of sending emails in two formas,
plain text or RTF ( rich text format )

if You want to add color to Your emails maybe the RTF way is the simpler one
I had found some time ago on the net a REXX script to build an RTF formatted document, but it seems to be gone

some times ago I found on the net a rexx script to build a document in RTF format,
I have been just searching but it seems to be gone

my <strong> comments about HTML were concerns for the receiving side icon_biggrin.gif
I am pretty sure that a document ( any type ) built on a MF will not have any virus attached

but... just curious, why the requirement to use colors for eMails sent from the MF ??

there are tools to convert from text to RTF - TX2RTF is one,
also for further details on the issue take a look at the XMITIP package fro Lionel Dyck
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Any body aware of CAP-COBOL language? Sachin Raghuwanshi COBOL Programming 4 Tue Aug 02, 2016 9:34 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us