cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ehms, J├╝rgen" <...@msc-ge.com>
Subject sendmail patch with attachements
Date Wed, 05 Jun 2002 13:21:39 GMT
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>ADRFROM@xxx.com</sendmail:from> <!-- required -->
  <sendmail:to>ADRTO@xxx.com</sendmail:to> <!-- required -->
  <sendmail:cc>ADRCC@xxx.com</sendmail:cc>
  <sendmail:bcc>ADRBCC@xxx.com</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

 



Mime
View raw message