79 lines
5.2 KiB
HTML
79 lines
5.2 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="concept" />
|
||
|
<meta name="DC.Title" content="Attach files" />
|
||
|
<meta name="abstract" content="You can use Send Distribution command (SNDDST) to send e-mail with an attached file or document." />
|
||
|
<meta name="description" content="You can use Send Distribution command (SNDDST) to send e-mail with an attached file or document." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzairsendmess.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzairsendmime.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzairattchfl" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Attach files</title>
|
||
|
</head>
|
||
|
<body id="rzairattchfl"><a name="rzairattchfl"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Attach files</h1>
|
||
|
<div><p>You can use Send Distribution command (SNDDST) to send e-mail with
|
||
|
an attached file or document.</p>
|
||
|
<p>When sending e-mail on the iSeries™ server using the SNDDST command,
|
||
|
you might 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.</p>
|
||
|
<p>To attach and send a <dfn class="term">document </dfn>with your e-mail,
|
||
|
in the character-based interface, type:</p>
|
||
|
<pre>SNDDST TYPE(*DOC) DSTD(<var class="varname">your description</var>) TOUSRID(<var class="varname">anyuser</var>) DOC(<var class="varname">yourdoc</var>) FLR(<var class="varname">yourfolder</var>)</pre>
|
||
|
<p>To attach and send a <dfn class="term">file</dfn> with your e-mail,
|
||
|
in the character-based interface, type:</p>
|
||
|
<pre>SNDDST TYPE(*FILE) DSTD(<var class="varname">description</var>) TOUSRID(<var class="varname">any user</var>)
|
||
|
MSG(<var class="varname">message optional</var>) DOCFILE(<var class="varname">youlib/yourfile</var>) DOCMBR(<var class="varname">yourmbr</var>)</pre>
|
||
|
<div class="note"><span class="notetitle">Note:</span> If you receive error messages, you might 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.</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Convert file types to send with SNDDST</h4><p>With
|
||
|
the iSeries server
|
||
|
playing a larger role in the Internet, a method is needed to send information
|
||
|
easily from the i5/OS™ to
|
||
|
e-mail clients.</p>
|
||
|
<p>Assuming that the spooled file 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 in the following example:</p>
|
||
|
<ol><li><p>Move the spooled file to a database physical file:</p>
|
||
|
<pre>CPYSPLF FILE(<var class="varname">splfile</var>) TOFILE(<var class="varname">dbfile</var>) JOB(<var class="varname">job3/job2/job1</var>) SPLNBR(<var class="varname">splnbr</var>) TOMBR(<var class="varname">mbr</var>)</pre>
|
||
|
</li>
|
||
|
<li><p>Move the physical database file to a folder:</p>
|
||
|
<pre>CPYTOPCD FROMFILE(<var class="varname">lib/dbfile</var>) TOFLR(<var class="varname">folder</var>) FROMMBR(<var class="varname">mbr</var>) REPLACE(*YES)</pre>
|
||
|
</li>
|
||
|
<li><p>Send the document:</p>
|
||
|
<pre>SNDDST TYPE(*DOC) TOUSRID(<var class="varname">user address</var>) DSTD(MAIL) DOC(<var class="varname">mbr</var>) FLR(<var class="varname">folder</var>)</pre>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzairsendmess.htm" title="You can send e-mail on an iSeries server with a Systems Network Architecture Distribution Services (SNADS) client program using the Send Distribution (SNDDST) command.">Use Systems Network Architecture Distribution Services to send e-mail</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="rzairsendmime.htm" title="You can use the Send MIME Mail (QtmmSendMail) API to send e-mail from an iSeries program.">QtmmSendMail API</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|