hi,
as much as i see the sendmail.xsl logicsheet does not offer you yet, an special <sendmail:attachement-add> element.
So you may want to enhance the src\java\org\apache\cocoon\components\language\markup\xsp\java\sendmail.xsl
for adding attachments, and provide it as patch.
As a hint you may have to study the javamail API for adding an attachment
to the MimeMessage object

regards bernhard

Scherler, Thorsten wrote:
Hello group,

I want to attach a pdf which will be create through a xsp. I will use it to create reports.
The xsp will get the datasets trough esql then transform it to pdf. I can then get the pdf trough http://localhost:8080/weidmueller/report.pdf?date=11/19/2002.

Now I want to attach the report to a mail and send it using sendmail. sendmail is runnig fine, by the way.

How can I attach a file? <sendmail:attachment> is not working.

Here part of my sendmail logicsheet:
<sendmail:send-mail>
<sendmail:charset>ISO-8859-1</sendmail:charset>
<sendmail:from>[EMAIL PROTECTED]</sendmail:from>
<sendmail:to>[EMAIL PROTECTED]</sendmail:to>
<sendmail:subject>Cocoon send mail test</sendmail:subject>
<!-- Modify the next line to point to your mail server -->
<sendmail:smtphost>post.weidmueller.com</sendmail:smtphost>
<sendmail:body>
<xsp:expr>text</xsp:expr>
</sendmail:body>
</sendmail:send-mail>
King regards


Mit freundlichem Gruss,

Thorsten Scherler
Marketing / Telefonmarketing

Weidmüller GmbH & Co.
P.O. Box 2807
33058 Paderborn
Tel.:+ 49 - 5252-960-350
Fax:+ 49 - 5252-960-116
eMail: [EMAIL PROTECTED]
http://www.weidmueller.de



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


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

Reply via email to