<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFMAILPARAM</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFMAILPARAM</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
電子メールメッセージへのファイルの添付やヘッダの追加を行います。 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
インターネットプロトコルタグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfmail
   to = &quot;recipient&quot;
   subject = &quot;msg_subject&quot;
   from = &quot;sender&quot;
   ...more attributes... &gt;

   &lt;cfmailparam
      file = &quot;file-name&quot; 
      type =&quot;media type&quot;
      contentID = &quot;content ID&quot;
      disposition = &quot;disposition type&quot;&gt;
   または
   &lt;cfmailparam
      name = &quot;header-name&quot;
       value = &quot;header-value&quot; &gt;
   ...
&lt;/cfmail&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfmail、cfmailpart、cfftp、cfhttp、cfldap、cfpop、『ColdFusion MX 開発ガイド』の第39章の「電子メールの送受信」 の「cfmailparam タグの使用」
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion MX 6.x: Disposition 属性および ContentID 属性が追加されました。
</p>

<p>
ColdFusion MX&#160;6.1: type 属性が追加されました。
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
このタグは、電子メールメッセージへのファイルの添付やヘッダの追加を行います。cfmail タグ内でのみ使用できます。cfmail タグ内で複数の cfmailparam タグを使用できます。 
</p>

<p>
このタグを使用して、画像などのファイルを HTML メールメッセージに含めることができます。ファイルは、HTML メッセージ内にインラインで表示することも、添付ファイルとすることもできます。複数のファイルを含めるには、複数の cfmailparam タグを使用します。
</p>

<p>
ファイルをメールメッセージ内にインラインで表示するには : 
</p>
<ol type="1">

<li>cfmail タグで type=&quot;html&quot; を指定します。 </li>

<li>cfmailparam タグで disposition=&quot;inline&quot; および ContentID 属性を指定します。 </li>

<li>src=&quot;cid:ContentIDValue&quot; 属性を使用して、img タグなどの HTML タグに含めるコンテンツを特定します。 </li>
</ol>

<p>
その例を次に示します。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;h3&gt;cfmailparam の例&lt;/h3&gt;
&lt;p&gt;この参照専用の例では、cfmailparam を使用して、メッセージへのヘッダの追加、ファイルの添付、送信者への
受信通知の返信を行います。&lt;/p&gt;
&lt;cfmail from = &quot;peter@domain.com&quot; To = &quot;paul@domain.com&quot;
Subject = &quot;重要な添付物です。ご覧の上お返事ください。&quot;&gt;
   &lt;cfmailparam name = &quot;Importance&quot; value = &quot;High&quot;&gt;
   新しいロゴをご覧ください。ご意見をお聞かせください。
   &lt;cfmailparam file = &quot;c:workreadme.txt&quot; type=&quot;text/plain&quot;&gt;
   &lt;cfmailparam file = &quot;c:worklogo.gif&quot; type=&quot;image/gif&quot;&gt;
   &lt;cfmailparam name=&quot;Disposition-Notification-To&quot; value=&quot;peter@domain.com&quot;&gt;
&lt;/cfmail&gt;
&lt;p&gt;この参照専用の例では、HTML メッセージの本文に画像を表示
   します。&lt;/p&gt;
&lt;cfmail type=&quot;HTML&quot;
      to = &quot;#form.mailto#&quot;
      from = &quot;#form.mailFrom#&quot;
      subject = &quot;Sample inline image&quot;&gt;
   &lt;cfmailparam file=&quot;C:Inetpubwwwrootweb.gif&quot; 
      disposition=&quot;inline&quot; 
      contentID=&quot;image1&quot;&gt;
   &lt;P&gt;画像をここに表示&lt;/p&gt;
   &lt;img src=&quot;cid:image1&quot;&gt;
   &lt;p&gt;画像終了&lt;/p&gt;
&lt;/cfmail&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="FILE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">FILE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">name 属性を指定しない場合は必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>メッセージにファイルを添付します。name 属性の値とは排他の関係です。ファイルは送信前に MIME でエンコードされます。</p>

  </td>
  </tr>
  </table>
</div>
<div id="NAME">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">NAME</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">file 属性を指定しない場合は必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>ヘッダの名前です。大文字と小文字の区別はありません。file 属性の値とは排他の関係です。</p>

  </td>
  </tr>
  </table>
</div>
<div id="TYPE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TYPE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>ファイルの MIME メディアタイプです。name 属性と一緒には使用しません。有効な MIME メディアタイプまたは次のいずれかの値を指定できます。</p><ul>

<li>text: text/plain タイプを指定します。</li>

<li>plain: text/plain タイプを指定します。</li>

<li>html: text/html タイプを指定します。</li>
</ul>

<p>メモ : 登録されているすべての MIME メディアタイプのリストについては、www.iana.org/assignments/media-types/</a> を参照してください。</p>

  </td>
  </tr>
  </table>
</div>
<div id="VALUE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VALUE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>ヘッダの値です。file 属性と一緒には使用しません。</p>

  </td>
  </tr>
  </table>
</div>
<div id="CONTENTID">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">CONTENTID</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>添付ファイルの識別子です。この ID はグローバルに固有な値である必要があり、添付ファイルのコンテンツを参照するメール本文中の IMG やその他のタグ内でファイルを識別するために使用されます。 </p>

  </td>
  </tr>
  </table>
</div>
<div id="DISPOSITION">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">DISPOSITION</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "attachment"


<p>添付するファイルの処理方法です。次のいずれかを指定します。</p><ul>

<li>attachment: ファイルを添付ファイルとして添付します。</li>

<li>inline: ファイルのコンテンツをメッセージ内に表示します。</li>
</ul>


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
