You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Ehms, Jürgen" <jg...@msc-ge.com> on 2002/06/05 15:21:39 UTC
sendmail patch with attachements
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
Re: sendmail patch with attachements
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 05.Jun.2002 -- 03:21 PM, "Ehms, Jürgen" wrote:
> 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
Cool! Great work!
Three whishes, though: 1) could you please use " diff -u " to create
the patch against CVS HEAD. Otherwise review is really a lot more
difficult. 2) It would be great if one could specify the mime-type and
3) even greater would be if one could provide the attachment as string
/ byte array / stream.
Cheers,
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>