You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/11/04 15:24:09 UTC

DO NOT REPLY [Bug 24388] New: - Enhanced Sendmail action....

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24388

Enhanced Sendmail action....

           Summary: Enhanced Sendmail action....
           Product: Cocoon 2
           Version: 2.1.2
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: andrzej@chaeron.com


I've enhanced the Sendmail action so that you can specify a source to use to get 
the content for the body of the email you wish to send.  This lets you generate 
the body out of a pipeline (cocoon:/ pseudo protocols work great here).  

Basically added two parameters to Sendmail as follows:

src - to specify the URL of the body source.
srcMimeType - (optional) to specify the Mime Type of the src.

If you specify src, then the body parameter is ignored.

This required changes to two files: 

   org.apache.cocoon.acting.Sendmail
   org.apache.cocoon.mail.MailMessageSender

Source for both files is attached.

.....Andrzej