×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi Frank,

Here is some info from IBM InfoCentre.

Cheers.
Jan.

Attach files

When sending e-mail on the iSeries server using the SNNDST command, you
may want to send a file or document with the e-mail. SNDDST is only
capable of sending a single document or file at a time. If you would
like to send multiple attachments, send MIME mail with the QtmmSendMail
API.

To attach and send a document with your e-mail, in the character-based
interface, type:

SNDDST TYPE(*DOC) DSTD(your description) TOUSRID(anyuser) DOC(yourdoc)
FLR(yourfolder)

To attach and send a file with your e-mail, in the character-based
interface, type:

SNDDST TYPE(*FILE) DSTD(description) TOUSRID(any user) 
MSG(message optional) DOCFILE(youlib/yourfile) DOCMBR(yourmbr)

Note: If you receive error messages, you may be attempting to send a
file or document that the iSeries server does not accept. You can use
the iSeries CPY commands to convert the file to a file or document that
is compatible with the SNDDST command.

Converting file types to send with SNDDST

With the iSeries server playing a larger role in the Internet, a method
is needed to send information easily from the OS/400 to e-mail clients.

Assuming that the spoolfile is already created, and the physical file
and folder already exist, you must convert the file into a sendable
format. The conversions are done by using iSeries commands, as shown
below.

Move the spool file to a data base physical file.

CPYSPLF   FILE(splfile)  TOFILE(dbfile)  JOB(job3/job2/job1)
SPLNBR(splnbr) TOMBR(mbr)

Move data base physical file to a folder.

CPYTOPCD   FROMFILE(lib/dbfile)  TOFLR(folder) FROMMBR(mbr) 
REPLACE(*YES)

Send the document.

SNDDST   TYPE(*DOC)  TOUSRID(user address) DSTD(MAIL) DOC(mbr) 
FLR(folder)



On Thu, 2003-05-08 at 22:56, fkany@xxxxxxxxxxxxxxxxxx wrote:
> 
> thanks for all your help.  i found something on our system that will insert
> the document into the body of any email instead of attaching it.  have a
> good day.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.