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

sending an email whose body contains regular text and an ima


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

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Tue Sep 01, 2009 9:01 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 01, 2009 9:08 pm
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: 206
Location: Bangalore

PostPosted: Wed Sep 02, 2009 1:43 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 02, 2009 3:19 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 02, 2009 6:21 pm
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: 206
Location: Bangalore

PostPosted: Wed Sep 02, 2009 9:17 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 02, 2009 9:53 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 02, 2009 10:01 pm
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: 206
Location: Bangalore

PostPosted: Thu Sep 03, 2009 11:12 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Sep 03, 2009 11:58 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts TEXT-TO-PDF Compuware & Other Tools 1
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts interactive cics program using CICS s... CICS 5
Search our Forums:

Back to Top