Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIMI Atachments w/Cobol

Status
Not open for further replies.

AtokKoenig

Programmer
Jul 28, 2003
8
US
Can anyone show me a technique to create email message including attach (various) files to message using Fujitsu? I need to be able to compile for Unix & Windows, thanks
 
quoting someone else
---------
Data modelling is the method used to represent, usually
in a pictorial form, the (computer, especially database) system that
is to be understood. It attempts to break the system into a set
of entities (frequently described by neophytes as tables) with
relationships between these entities. Once defined in it's most
rigorous form, external forces (programs) can be devised which will
act on these entities and (hopefully) understood.

Data modelling is part science (there are rigorous rules that
can be followed) and part art (it takes a special 'touch' to know
when, which and how much of the rules are to be applied). It can
take a long time to develop the skills.

It is primarily used to confirm to others the understanding
of a system's entities in a form that computer professionals
and the others may understand.

Knowledge of Data Modelling is essential for good use of
almost any CASE tools; as is the philosophy (methodology)
of that CASE tool.

There are many books on data modelling, usually involving the
larger topic of information engineering. It is definitely a skill
that is worth learning. Database oriented magazines frequently
have some columns or articles related to the topic - a relatively
inexpensive way to learn the terms, if not the trade.

------------


Although not normally applied with as much emphasis to COBOL files it is still be as such.
It is something that you will get with experience, and only if you are good at it, as otherwise you will get crap systems.
 
To clarify. I have creation of email messages adn sending through another email server working. I do not know how to add MIME attachments

Thank you
 
Oops. Wrong post. Ignore my comment.

As for this particular post there is some software that will work with Unix/windows, but you will probably find it hard to use the same in both environments.

I am sure others will post examples, but for Windows you can use almost ANY software around that allows email. If you need a control someething from may help you, but there are others.

For Unix you are more limited.
 
Hi Atok

Take a look at - Cobol section.
There some examples written by a friend that will help you to resolve your email attachments problems..

Hope in this help

Gianni
 
Thanks!! I will review and post back results by next week
 
I downloaded PowerMail from the link provided. It looks like the logic for actually producing the Email w/MIME attachment is done by PowerMail.DLL.

I need to know the technique to accomplish this and have to be able to run it on both HP-UX & Windows. Anyone know about the actual proceedure to create a mail message w/ attachments?

Thanks
 
Dear Glen,

Thank you for posting. I am familiar with creating SMTP messages in other languages and am creating messages now in Cobol but my resources do not seem to contain anything about attachments, that is what could really use help with
 
Atok -

Not sure what more you need. Here's code from the sample cited:
Code:
To: Donald Duck <dduck@fictive.com>
From: Anders And <aand@imaginary.com>
Subject: Nice beginning of a mail message
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;arbitraryBoundaryString&quot;

--arbitraryBoundaryString
Content-Type: text/plain; charset=&quot;us-ascii&quot;

This text is a part of an arbitrary 
message used as an example of a plain text message.

--arbitraryBoundaryString
Content-Type: application/octet-stream; name=&quot;Test_document.doc&quot;
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=&quot;Test_document.doc&quot;

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAA
EAAABQEAAAEAAAD+////AAAAAAQAAAAGAAAADgEAAP//////////////////////////////////
////////////////////////////////////////////////////////////////////////////

...............

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAA=
--arbitraryBoundaryString
RFC 2045 contains detailed instructions including the Base64 encoding mechanism to be used to represent arbitrary bytes.

You don't say what mime types you need. My suggestion is to create a few sample messages with attachments using whatever SMTP mailer you have access to. Send them to yourself and look at the format of the incoming messages. That should give you some understandable, concrete examples of how to approach this.

Regards.

Glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top