Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 5904 invoked by uid 500); 4 Dec 2002 07:25:15 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 5884 invoked from network); 4 Dec 2002 07:25:15 -0000 Message-ID: <3DEDADFD.4050400@wyona.org> Date: Wed, 04 Dec 2002 08:25:49 +0100 From: Thorsten Scherler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: AW: Sendmail serial email References: <3671ACD9D9D5C648A6181F8048DC9A5D7C6C28@srvde016.weidmueller.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Frank, so you patched the sendmail.xsl to have multiple cc. Rhanks for the reply. What you have said makes sense (showing the concept). I had a look @ the JavaMail Design Specification. I have there my desiered result (a script for multipart message). That would be the "ready to go" Java code. Coming from the sendmail.xsl I have to extend it in attaching the code for multipart. This I have to write in xsl because it will be parsed. The parsed result have to be in Java. // Instantiate a Multipart object MimeMultipart mp = new MimeMultipart(); // create the first bodypart object MimeBodyPart b1 = new MimeBodyPart(); // create textual content // and add it to the bodypart object b1.setContent("Spaceport Map","text/plain"); mp.addBodyPart(b1); // Multipart messages usually have more than // one body part. Create a second body part // object, add new text to it, and place it // into the multipart message as well. This // second object holds postscript data. MimeBodyPart b2 = new MimeBodyPart(); b2.setContent(map,"application/ postscript"); mp.addBodyPart(b2); // Create a new message object as described above, // and set its attributes. Add the multipart // object to this message and call saveChanges() // to write other message headers automatically. Message msg = new MimeMessage(session); // Set message attrubutes as in a singlepart // message. msg.setContent(mp); // add Multipart msg.saveChanges(); I have to get that result, right! Thank you Frank for repling I am on my own and I will try my best! ;-) Frank Ridderbusch wrote: > Scherler, Thorsten wrote: > > >>Hello group, >> >>I don't know why I don't get any answers on that topic, but it is quit >>frustrating. >> >> > > http://www.javaworld.com/javaworld/jw-09-2002/jw-0920-cocoon-p2.html#sidebar1 > >>There you can find how to nested a esql with sendmail. >> >>It is working! >> >>Now I just suffering how to attach a pdf. >> >>...but I don't think I will get any answers on that,or? >> >>:-( > > > Well, here is someone, who will answer, but I guess it is not quite the > expected answer. > > It does not appear, that you have looked at source of sendmail.xsp > logisheet (to be found at the location > > src/java/org/apache/cocoon/components/language/markup/xsp/java/sendmail.xsl > > If you do, then you realize, that sendmail.xsp ist basically a XSL > stylesheet, that generates Java code, which in turn send an email > though the Java Mail API. You're also see, that only a hand full of > tags are implemented and sendmail:attach is not one of them. > Apparently until now there wasn't anybody who felt the need to > to attach a file in a sendmail.xsp logisheet. I guess, the current > sendmail.xsp is more of a prove of concept and this is probably > also the reason, that it not configured by default in the main sitemap. > > I guess, you're on your own. You might want to look at the report > I filed with bugzilla: > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15005 > > This might give you an idea, how to proceed. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: