Here is the Bugfix to Sendmail.xsl - long Path to javax.mail.Session on account of ambiguous to org.apache.cocoon.environment.Session - changes on Template "get-nested-string" to prevent ERROR on String.getValue() with missing Argument; - added Tags <sendmail:bcc>,<sendmail:cc>,<sendmail:charset>
usage with <xmlns:sendmail="http://apache.org/cocoon/sendmail/1.5> in Head ... <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:send-mail> I testet with jdk1.3.1 tomcat-4.0.4-dev2 cocoon-2.0.3-dev I hope it will help greetings Juergen Ehms -----Ursprüngliche Nachricht----- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 11. April 2002 21:22 An: [EMAIL PROTECTED] Betreff: RE: [Problem]sendmail - reference to Session is ambiguous > From: Ehms, Jьrgen [mailto:[EMAIL PROTECTED]] > > Hallo > > I also like to use sendmail in my XSP but if I put only in my Head > > <xsp:page language="java" > xmlns:xsp="http://apache.org/xsp" > xmlns:esql="http://apache.org/cocoon/SQL/v2" > xmlns:xsp-session="http://apache.org/xsp/session/2.0" > xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0"> > > I got always the error: > > reference to Session is ambiguous, both class javax.mail.Session in package > javax.mail and interface org.apache.cocoon.environment.Session in package > org.apache.cocoon.environment > > XSP-Gererator automaticly generates: > > /** > * Generate XML data. > */ > public void generate() throws SAXException, IOException, > ProcessingException { > > > Session session = request.getSession(true); > > and not > > org.apache.cocoon.environment.Session session = > request.getSession(true); > > > > How can I resolve this Problem in this Packages. This seems like a bug in the sendmail logicsheet. Change sendmail logicsheet so it does not imports JavaMail session, but uses fully qualified name. PS You could send a patch when/if you fix Vadim > > regards > > Juergen > --------------------------------------------------------------------- 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]>
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]>