Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

As400 files as mime attachments in email, help!

270 views
Skip to first unread message

tapeon

unread,
Jul 7, 1998, 3:00:00 AM7/7/98
to
I need to take an as/400 file containing text data only and send it as a mime
attached document to an internet email user via a program. I only need to
send it in one direction, as400 to internet. I have written CL to send email
just fine using SNDDST, I can even send the data in the file as part of the
message body. What I cannot get it is the file to come across as a mime
attachment. I have searched in vain across the internet to find a solution to
this problem. I have founds many hints and rumours. We are on V3R2 and do
have Office Vision. I am fluent in both CL and RPG so examples in either
would be great.

Patrick Townsend

unread,
Jul 7, 1998, 3:00:00 AM7/7/98
to tapeon
Tapeon,

As incredible as it may seem IBM has not provided a decent way to send
an e-mail message with a MIME attachment on the V3R2 systems. The
support is pretty weak on V4R2, but almost non-existent on V3R2. On the
RISC systems you can use the QtmmSendMail API for outbound MIME
attachments. But you need to do your own formatting of the SMTP/MIME
message (headers, boundaries, data, etc.).

The one thing you might try is copying the file to a document in DCA/FFT
format using an extension like ".txt" on the document name. Then send it
with the SNDDST command using *DOC as the type. You don't have much
ability to associate a message with the attachment, but I've gotten this
to work in the past.

HTH,
Patrick

--

Patrick Townsend mailto:town...@patownsend.com
Patrick Townsend & Associates, Inc. http://www.patownsend.com

Mike Corbo

unread,
Jul 8, 1998, 3:00:00 AM7/8/98
to
You did not say where the file resides on the as/400. If it is in a shared
folder, the SNDDST command will create the attachement.

SNDDST TYPE(*DOC) TOUSRID((INT0043 INTERNET)) DSTD(SUBJECT GOES HERE)
MSG(Body of message goes here') DOC(FILEA.TXT) FLR('corbo/upload')

Its primitive, but it does work.

Need more info, email me


tapeon wrote in message <6ntjsi$j00$1...@nw003t.infi.net>...

tho...@inorbit.com

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
Mike:

And by preceding the SNDDST with a CPYTOPCD command, the DB file can be put
into a 'document' easily.

Tom Liotta

In article <89991470...@hercules.carroll.com>,

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum

tho...@inorbit.com

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
Mike:

Also, by enabling 'context switching' for e-mail, you can drop the
TOUSRID((INT0043 INTERNET)) format and specify the actual SMTP address.

Mike Corbo

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
context switching? can you use that on the snddst command? Just put the
/internet /end in the message parameter? Will that work?

Mike

tho...@inorbit.com wrote in message <6o1bdt$6i9$1...@nnrp1.dejanews.com>...

tho...@inorbit.com

unread,
Jul 10, 1998, 3:00:00 AM7/10/98
to
Mike:

Once activated, you can use the TOINTNET() parameter of SNDDST to hold an
SMTP address when sending just about anything except *MSGs. Of course, if you
send something like a .sig in a text file, you can still use the MSG()
parameter for the "message". Use TOINTNET() in place of TOUSRID(). A fairly
simple CL and command shell gives easy ways to SNDDBFSMTP (Send Database File
with SMTP) or even SNDSPLSMTP (Send Spoolfile with SMTP).

Check out the TOINTNET() parameter by prompting SNDDST and pressing <F9> to
view all parameters.

Tom Liotta

In article <89998322...@hercules.carroll.com>,

0 new messages