Cocoon 2.2 and sendmail

2011-05-09 Thread Grégory Roche
Hi, I'm trying send email with Cocoon 2.2. So, I have in my pom.xml the dependency : dependency groupIdorg.apache.cocoon/groupId artifactIdcocoon-mail-impl/artifactId version1.0.0/version /dependency and in my sitemap.xmap, I have my tramsformer sendmail :

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Søren Krum
Hi! Did you check that the jars you mention are not included over the dependency cocoon-mail-impl? If not, you could add these dependencies in your pom, then you should get them in your build. -- Med vennlig hilsen / kind regards Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andy Stevens
2011/5/9 Grégory Roche webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail     src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test :   

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Grégory Roche
So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andy Stevens
What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org wrote: So, I have

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andre Juffer
One way to find out what is happening is to remove (comment out) the map:transform type=sendmail/ and have a look at the generated XML e.g. in your browser with: http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org There may be just a simple error in the generated XML that

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Grégory Roche
Ok, now, I have a minimal pipeline : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform type=sendmail/ map:serialize type=xml/ /map:match and my file sendmail.xml (an exemple is on the page

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andre Juffer
The generated XML seems fine. Possible, the Invalid address message is a response from smtp.polymorphisme.org. It may be that the email address itself is OK, but the protocol for accepting emails is wrong. Port 25 suggests that you assume no connection security and no authentication either.

Detecting mobile browsers and redirecting

2011-05-09 Thread Mike Sickler
I also posted this question to http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site StackOverflow : I have two Cocoon sites: ABC and ABC-mobile. If the user is coming from a mobile browser, then I want them redirected to ABC-mobile.

Re: Detecting mobile browsers and redirecting

2011-05-09 Thread florent andré
Hi, May have a look to this : http://cocoon.apache.org/2.1/userdocs/browser-selector.html ++ On 05/09/2011 02:02 PM, Mike Sickler wrote: I also posted this question to http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site

Re: Detecting mobile browsers and redirecting

2011-05-09 Thread Andreas Hartmann
Am 09.05.11 14:02, schrieb Mike Sickler: I also posted this question to http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site StackOverflow : I have two Cocoon sites: ABC and ABC-mobile. If the user is coming from a mobile browser,

Re: Detecting mobile browsers and redirecting

2011-05-09 Thread AliHotmail
Hi, DeviceCompass offers a Cocoon 2.2 Block to do this. You can choose not only the browser type but also any device criteria to redirect to your mobile page. http://www.devicecompass.com/en/docs/compass-cocoon-block Regards Ali Am 09.05.2011 um 14:02 schrieb Mike Sickler: I also posted

Re: Cocoon caching with multiple pipelines

2011-05-09 Thread Andreas Hartmann
Hi Robin, Am 27.04.11 12:49, schrieb Robin Taylor: It looks like the default generator is an extension of FileGenerator that I assume takes as input the output from themap:serialize type=xml/ step in the preceding pipeline. what do you mean with preceding pipeline? What exactly does the

Re: validating xml

2011-05-09 Thread Andreas Hartmann
Hi Robby, Am 14.04.11 13:43, schrieb Robby Pelssers: Hi all, i've got an interesting use case where my starting point is XML data (could be 1 single file, aggregated xml data, xquery results, ...) From this input I have to generate a DITA map and topics for which I have a map.dtd and

RE: validating xml

2011-05-09 Thread Robby Pelssers
Hi Andreas, your suggestion would of course work and i did consider it as a non-preferred solution. To answer your question: I don't have to generate the input myself. The original xml input comes from filesystem or an xml database so it's just fetching the file but in my case i would have