I added the capability  to send attachements with Sendmail.xsl

the tag <sendmail:attachement> 
will add all given Files separated by semicolon
in a String to the mail.

usage:
<sendmail:send-mail>
  <sendmail:smtphost>Mailserver</sendmail:smtphost>  <!-- default is
127.0.0.1 -->
  <sendmail:from>[EMAIL PROTECTED]</sendmail:from> <!-- required -->
  <sendmail:to>[EMAIL PROTECTED]</sendmail:to> <!-- required -->
  <sendmail:cc>[EMAIL PROTECTED]</sendmail:cc>
  <sendmail:bcc>[EMAIL PROTECTED]</sendmail:bcc>
   <sendmail:charset>ADRFROM</sendmail:charset>
  <sendmail:subject>TXTSubjekt</sendmail:subject>
  <sendmail:body>TXTMSG</sendmail:body>
  <sendmail:charset>ISO-8859-1</sendmail:charset>
 
<sendmail:attachement>/path-to-file1-on-server/filename1.xxx;/path-to-file2-
on-server/filename2.xxx</sendmail:attachement>
</sendmail:send-mail>

I testet with Win2000 jdk1.3.1 tomcat-4.0.4-dev2  cocoon-2.1-dev 

I hope it will help

greetings

Juergen Ehms

 


Attachment: sendmail.xsl
Description: Binary data

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to