You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2006/08/18 14:42:12 UTC

[DAISY] Updated: Sendmail Action

A document has been updated:

http://cocoon.zones.apache.org/daisy/legacydocs/427.html

Document ID: 427
Branch: main
Language: default
Name: Sendmail Action (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 8/18/06 12:41:49 PM
Updated by: Helma van der Linden

A new version has been created, state: publish

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 9252 bytes (previous version: 8374 bytes)
Content diff:
(21 equal lines skipped)
    </p>
    
    <pre>
--- 
    &lt;map:components&gt;
      &lt;map:actions&gt;
         &lt;map:action name="sendmail" logger="sitemap.action.sendmail"
(10 equal lines skipped)
    <tt>body</tt>.</p>
    
    <pre>
--- 
    &lt;form action="/cocoon/mail/send-a-mail"
          method="POST"
         enctype="multipart/form-data"&gt;
(13 equal lines skipped)
    <p>The posted HTTP request data is processed by this sitemap fragment.</p>
    
    <pre>
--- 
    &lt;map:match pattern="mail/*"&gt;
      &lt;map:act type="sendmail"&gt;
        &lt;!-- To override defaults specified in cocoon.xconf:
(35 equal lines skipped)
    into the Sendmail action.</p>
    
    <table>
+++ <tbody>
    <tr>
    <th>
    <p>Name:</p>
(163 equal lines skipped)
    <tt>org.apache.cocoon.components.request.multipart.FilePart</tt> object).</p>
    </td>
    </tr>
+++ </tbody>
    </table>
    
    <p>The following is the list of parameters which are passed from Sendmail action
    back into the sitemap.</p>
    
    <table>
+++ <tbody>
    <tr>
    <th>
    <p>Name:</p>
(26 equal lines skipped)
    delivered. It is unset if the email message had been successfully sent.</p>
    </td>
    </tr>
+++ </tbody>
    </table>
    
    <h1 id="hint">Additional Hint</h1>
(14 equal lines skipped)
    <p>With <tt>autosave-upload=true</tt> it worked flawlessly, even attaching
    multiple files.</p>
    
+++ <h1>Probable solution to SendMail not working</h1>
+++ 
+++ <p>If you have setup your SendMail action in Cocoon 2.1.8 or 2.1.9 or more
+++ recent and it doesn't work although the result of the action is
+++ <strong>success</strong>, the problem might lie</p>
+++ 
+++ <p>in the existence of the Geronimo files. Due to licensing problems it was not
+++ possible to include Sun's mail API jars, but without Cocoon wouldn't compile.
+++ Therefore, we included the Geronimo jars.</p>
+++ 
+++ <p>What you should do is:</p>
+++ 
+++ <ul>
+++ <li>Download theĀ <a href="http://java.sun.com/products/javamail/"> JavaMail</a>
+++ andĀ <a href="http://java.sun.com/products/javabeans/glasgow/jaf.html">
+++ JavaBeans Activation Framework (JAF)</a> API's from Sun to work.</li>
+++ <li>Add them to WEB-INF/lib.</li>
+++ <li>Remove geronimo-spec-javamail-*.jar and geronimo-spec-activation-*.jar from
+++ WEB-INF/lib.</li>
+++ </ul>
+++ 
    </body>
    </html>