You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Grégory Roche <we...@polymorphisme.org> on 2011/05/09 08:50:47 UTC
Cocoon 2.2 and sendmail
Hi,
I'm trying send email with Cocoon 2.2.
So, I have in my pom.xml the dependency :
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-mail-impl</artifactId>
<version>1.0.0</version>
</dependency>
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 :
<map:match pattern="sendmail">
<map:generate src="xdocs/sendmail.xml"/>
<map:transform src="stylesheets/sendmail.xsl">
<map:parameter name="name" value="{request-param:name}"/>
<map:parameter name="email" value="{request-param:email}"/>
<map:parameter name="id" value="{session:id}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
I'm sure that my params are good :)
But then I send an email, I have nothing in my email box !!!
So, I can read (on http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html)
"NOTE: The SendMailTransformer needs the JavaMail[1] and JavaBeans Activation Framework (JAF)[2] API's from Sun to work. Add them to WEB-INF/lib. Remove geronimo-spec-javamail-*.jar and geronimo-spec-activation-*.jar from WEB-INF/lib."
but I don't have a repertory WEB-INF/lib, I have just a COB-INF and META-INF !
Have you got an idea ? Where can I put my .jar ?
Thanks
G. R.
www.polymorphisme.com
webmaster@polymorphisme.org
fixe : +33 (0)5.24.07.64.02
port : +33 (0)6.89.54.14.84
Liens:
------
[1] http://java.sun.com/products/javamail/
[2] http://java.sun.com/products/javabeans/glasgow/jaf.html
Re: Cocoon 2.2 and sendmail
Posted by Grégory Roche <we...@polymorphisme.org>.
Thank Andy for your comments, I have understands and now I can send and receved emails.
The transformer Sendmail don't use the authentication, but the action sendmail do that :
<map:act type="sendmail">
<map:parameter name="smtp-host" value="smtp.polymorphisme.org" />
<map:parameter name="smtp-user" value="XXX" />
<map:parameter name="smtp-password" value="XXX" />
<map:parameter name="from" value="webmaster@polymorphisme.org" />
<map:parameter name="to" value="webmaster@polymorphisme.org" />
<map:parameter name="subject" value="test" />
<map:parameter name="body" value="Good !" />
</map:act>
and it work fine.
Good day :)
Grégory Roche
www.polymorphisme.com
webmaster@polymorphisme.org
fixe : +33 (0)5.24.07.64.02
port : +33 (0)6.89.54.14.84Andre Juffer <an...@oulu.fi> a écrit :
> 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. That is correct? If you send it from a machine
> outside the domain polymorphisme.org, it may be that your email is
> simply not accepted by the SMTP. If so, you would need to use the
> local sendmail (on unix/Linux boxes at least).
>
>
> On 09/05/11 11:59, Grégory Roche wrote:
>>
>> 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
>> http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) :
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
>> <email:sendmail>
>> <email:smtphost>smtp.polymorphisme.org</email:smtphost>
>> <email:smtpport>25</email:smtpport>
>> <email:from>webmaster@polymorphisme.org</email:from>
>> <email:to>webmaster@polymorphisme.org</email:to>
>> <email:subject>subject</email:subject>
>> <email:body>body</email:body>
>> </email:sendmail>
>> </document>
>>
>> And with my navigator I open URL : http://localhost:8888/admin/sendmail
>>
>> but he returns :
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <documentxmlns:email="http://apache.org/cocoon/transformation/sendmail">
>>
>> <email:result>
>>
>> <email:failureto="webmaster@polymorphisme.org">Invalid
>> address</email:failure>
>>
>> </email:result>
>>
>> </document>
>>
>> It's more funny, but I don't understand why I can't to receve my
>> email, my email adress is valid !
>>
>> Thank for you help.
>>
>> Grégory Roche
>>
>> www.polymorphisme.com
>> webmaster@polymorphisme.org
>> fixe : +33 (0)5.24.07.64.02
>> port : +33 (0)6.89.54.14.84
>>
>> Andre Juffer <an...@oulu.fi> a écrit :
>>
>>> 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=roche&email=webmaster@polymorphisme.org
>>> <ht...@polymorphisme.org>
>>>
>>> There may be just a simple error in the generated XML that sendmail
>>> receives.
>>>
>>> On 09/05/11 11:27, Andy Stevens wrote:
>>>>
>>>> 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" <webmaster@polymorphisme.org
>>>> <ma...@polymorphisme.org>> wrote:
>>>>>
>>>>>
>>>>> 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}"/>
>>>>> <map:parameter name="email" value="{request-param:email}"/>
>>>>> <map:parameter name="id" value="{session:id}"/>
>>>>> </map:transform>
>>>>> <map:transform type="sendmail"/>
>>>>> <map:serialize type="xml"/>
>>>>> </map:match>
>>>>>
>>>>> That it's good :)
>>>>>
>>>>> But then I send an email, I have the reponce :
>>>>>
>>>>> <:result xmlns="http://apache.org/cocoon/transformation/sendmail">
>>>>> <:failure to="webmaster@polymorphisme.org
>>>>> <ma...@polymorphisme.org>">Invalid address</:failure>
>>>>> </:result>
>>>>>
>>>>> And my adresse email webmaster@polymorphisme.org
>>>>> <ma...@polymorphisme.org> is valide.
>>>>>
>>>>> I don't know what is the problem ! Thanks.
>>>>>
>>>>> G R
>>>>>
>>>>> www.polymorphisme.com <http://www.polymorphisme.com>
>>>>> webmaster@polymorphisme.org <ma...@polymorphisme.org>
>>>>> fixe : +33 (0)5.24.07.64.02
>>>>> port : +33 (0)6.89.54.14.84Andy Stevens
>>>>> <insomniacpenguin@googlemail.com
>>>>> <ma...@googlemail.com>> a écrit :
>>>>>
>>>>>> 2011/5/9 Grégory Roche <webmaster@polymorphisme.org
>>>>>> <ma...@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 :
>>>>>>>
>>>>>>> <map:match pattern="sendmail">
>>>>>>> <map:generate src="xdocs/sendmail.xml"/>
>>>>>>> <map:transform src="stylesheets/sendmail.xsl">
>>>>>>> <map:parameter name="name"
>>>>>>> value="{request-param:name}"/>
>>>>>>> <map:parameter name="email" value="{request-param:email}"/>
>>>>>>> <map:parameter name="id" value="{session:id}"/>
>>>>>>> </map:transform>
>>>>>>> <map:serialize type="xml"/>
>>>>>>> </map:match>
>>>>>>>
>>>>>>> I'm sure that my params are good :)
>>>>>>>
>>>>>>> But then I send an email, I have nothing in my email box !!!
>>>>>>
>>>>>> Maybe I'm missing something here, but you don't appear to have called
>>>>>> the sendmail transformer - the pipeline you quoted only has a
>>>>>> generator, xslt transformation and xml serialiser...?
>>>>>>
>>>>>>
>>>>>> Andy
>>>>>> --
>>>>>> http://pseudoq.sourceforge.net/
>>>>>>
>>>
>>>
>>> --
>>> Andre H. Juffer | Phone: +358-8-553 1161
>>> Biocenter Oulu and | Fax: +358-8-553-1141
>>> Department of Biochemistry | Email: andre.juffer@oulu.fi
>>> University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
>>> StrucBioCat | WWW: www.strucbiocat.oulu.fi
>>> Triacle Biocomputing | WWW: www.triacle-bc.com
>>>
>>>
>
>
> --
> Andre H. Juffer | Phone: +358-8-553 1161
> Biocenter Oulu and | Fax: +358-8-553-1141
> Department of Biochemistry | Email: andre.juffer@oulu.fi
> University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
> StrucBioCat | WWW: www.strucbiocat.oulu.fi
> Triacle Biocomputing | WWW: www.triacle-bc.com
>
>
Re: Cocoon 2.2 and sendmail
Posted by Andre Juffer <an...@oulu.fi>.
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. That is correct? If you send it from a machine outside the
domain polymorphisme.org, it may be that your email is simply not
accepted by the SMTP. If so, you would need to use the local sendmail
(on unix/Linux boxes at least).
On 09/05/11 11:59, Grégory Roche wrote:
>
> 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
> http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
> <email:sendmail>
> <email:smtphost>smtp.polymorphisme.org</email:smtphost>
> <email:smtpport>25</email:smtpport>
> <email:from>webmaster@polymorphisme.org</email:from>
> <email:to>webmaster@polymorphisme.org</email:to>
> <email:subject>subject</email:subject>
> <email:body>body</email:body>
> </email:sendmail>
> </document>
>
> And with my navigator I open URL : http://localhost:8888/admin/sendmail
>
> but he returns :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <documentxmlns:email="http://apache.org/cocoon/transformation/sendmail">
>
> <email:result>
>
> <email:failureto="webmaster@polymorphisme.org">Invalid
> address</email:failure>
>
> </email:result>
>
> </document>
>
> It's more funny, but I don't understand why I can't to receve my
> email, my email adress is valid !
>
> Thank for you help.
>
> Grégory Roche
>
> www.polymorphisme.com
> webmaster@polymorphisme.org
> fixe : +33 (0)5.24.07.64.02
> port : +33 (0)6.89.54.14.84
>
> Andre Juffer <an...@oulu.fi> a écrit :
>
> > 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=roche&email=webmaster@polymorphisme.org
> <ht...@polymorphisme.org>
> >
> > There may be just a simple error in the generated XML that sendmail
> receives.
> >
> > On 09/05/11 11:27, Andy Stevens wrote:
> >>
> >> 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" <webmaster@polymorphisme.org
> >> <ma...@polymorphisme.org>> wrote:
> >>>
> >>>
> >>> 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}"/>
> >>> <map:parameter name="email" value="{request-param:email}"/>
> >>> <map:parameter name="id" value="{session:id}"/>
> >>> </map:transform>
> >>> <map:transform type="sendmail"/>
> >>> <map:serialize type="xml"/>
> >>> </map:match>
> >>>
> >>> That it's good :)
> >>>
> >>> But then I send an email, I have the reponce :
> >>>
> >>> <:result xmlns="http://apache.org/cocoon/transformation/sendmail">
> >>> <:failure to="webmaster@polymorphisme.org
> >>> <ma...@polymorphisme.org>">Invalid address</:failure>
> >>> </:result>
> >>>
> >>> And my adresse email webmaster@polymorphisme.org
> >>> <ma...@polymorphisme.org> is valide.
> >>>
> >>> I don't know what is the problem ! Thanks.
> >>>
> >>> G R
> >>>
> >>> www.polymorphisme.com <http://www.polymorphisme.com>
> >>> webmaster@polymorphisme.org <ma...@polymorphisme.org>
> >>> fixe : +33 (0)5.24.07.64.02
> >>> port : +33 (0)6.89.54.14.84Andy Stevens
> >>> <insomniacpenguin@googlemail.com
> >>> <ma...@googlemail.com>> a écrit :
> >>>
> >>>> 2011/5/9 Grégory Roche <webmaster@polymorphisme.org
> >>>> <ma...@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 :
> >>>>>
> >>>>> <map:match pattern="sendmail">
> >>>>> <map:generate src="xdocs/sendmail.xml"/>
> >>>>> <map:transform src="stylesheets/sendmail.xsl">
> >>>>> <map:parameter name="name"
> >>>>> value="{request-param:name}"/>
> >>>>> <map:parameter name="email" value="{request-param:email}"/>
> >>>>> <map:parameter name="id" value="{session:id}"/>
> >>>>> </map:transform>
> >>>>> <map:serialize type="xml"/>
> >>>>> </map:match>
> >>>>>
> >>>>> I'm sure that my params are good :)
> >>>>>
> >>>>> But then I send an email, I have nothing in my email box !!!
> >>>>
> >>>> Maybe I'm missing something here, but you don't appear to have called
> >>>> the sendmail transformer - the pipeline you quoted only has a
> >>>> generator, xslt transformation and xml serialiser...?
> >>>>
> >>>>
> >>>> Andy
> >>>> --
> >>>> http://pseudoq.sourceforge.net/
> >>>>
> >
> >
> > --
> > Andre H. Juffer | Phone: +358-8-553 1161
> > Biocenter Oulu and | Fax: +358-8-553-1141
> > Department of Biochemistry | Email: andre.juffer@oulu.fi
> > University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
> > StrucBioCat | WWW: www.strucbiocat.oulu.fi
> > Triacle Biocomputing | WWW: www.triacle-bc.com
> >
> >
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: andre.juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
StrucBioCat | WWW: www.strucbiocat.oulu.fi
Triacle Biocomputing | WWW: www.triacle-bc.com
Re: Cocoon 2.2 and sendmail
Posted by Grégory Roche <we...@polymorphisme.org>.
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 http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) :
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
<email:sendmail>
<email:smtphost>smtp.polymorphisme.org</email:smtphost>
<email:smtpport>25</email:smtpport>
<email:from>webmaster@polymorphisme.org</email:from>
<email:to>webmaster@polymorphisme.org</email:to>
<email:subject>subject</email:subject>
<email:body>body</email:body>
</email:sendmail>
</document>
And with my navigator I open URL : http://localhost:8888/admin/sendmail
but he returns :
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
<email:result>
<email:failure to="webmaster@polymorphisme.org">Invalid address</email:failure>
</email:result>
</document>
It's more funny, but I don't understand why I can't to receve my email, my email adress is valid !
Thank for you help.
Grégory Roche
www.polymorphisme.com
webmaster@polymorphisme.org
fixe : +33 (0)5.24.07.64.02
port : +33 (0)6.89.54.14.84Andre Juffer <an...@oulu.fi> a écrit :
> 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=roche&email=webmaster@polymorphisme.org
>
> There may be just a simple error in the generated XML that sendmail receives.
>
> On 09/05/11 11:27, Andy Stevens wrote:
>>
>> 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" <webmaster@polymorphisme.org
>> <ma...@polymorphisme.org>> wrote:
>>>
>>>
>>> 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}"/>
>>> <map:parameter name="email" value="{request-param:email}"/>
>>> <map:parameter name="id" value="{session:id}"/>
>>> </map:transform>
>>> <map:transform type="sendmail"/>
>>> <map:serialize type="xml"/>
>>> </map:match>
>>>
>>> That it's good :)
>>>
>>> But then I send an email, I have the reponce :
>>>
>>> <:result xmlns="http://apache.org/cocoon/transformation/sendmail">
>>> <:failure to="webmaster@polymorphisme.org
>>> <ma...@polymorphisme.org>">Invalid address</:failure>
>>> </:result>
>>>
>>> And my adresse email webmaster@polymorphisme.org
>>> <ma...@polymorphisme.org> is valide.
>>>
>>> I don't know what is the problem ! Thanks.
>>>
>>> G R
>>>
>>> www.polymorphisme.com <http://www.polymorphisme.com>
>>> webmaster@polymorphisme.org <ma...@polymorphisme.org>
>>> fixe : +33 (0)5.24.07.64.02
>>> port : +33 (0)6.89.54.14.84Andy Stevens
>>> <insomniacpenguin@googlemail.com
>>> <ma...@googlemail.com>> a écrit :
>>>
>>>> 2011/5/9 Grégory Roche <webmaster@polymorphisme.org
>>>> <ma...@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 :
>>>>>
>>>>> <map:match pattern="sendmail">
>>>>> <map:generate src="xdocs/sendmail.xml"/>
>>>>> <map:transform src="stylesheets/sendmail.xsl">
>>>>> <map:parameter name="name"
>>>>> value="{request-param:name}"/>
>>>>> <map:parameter name="email" value="{request-param:email}"/>
>>>>> <map:parameter name="id" value="{session:id}"/>
>>>>> </map:transform>
>>>>> <map:serialize type="xml"/>
>>>>> </map:match>
>>>>>
>>>>> I'm sure that my params are good :)
>>>>>
>>>>> But then I send an email, I have nothing in my email box !!!
>>>>
>>>> Maybe I'm missing something here, but you don't appear to have called
>>>> the sendmail transformer - the pipeline you quoted only has a
>>>> generator, xslt transformation and xml serialiser...?
>>>>
>>>>
>>>> Andy
>>>> --
>>>> http://pseudoq.sourceforge.net/
>>>>
>
>
> --
> Andre H. Juffer | Phone: +358-8-553 1161
> Biocenter Oulu and | Fax: +358-8-553-1141
> Department of Biochemistry | Email: andre.juffer@oulu.fi
> University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
> StrucBioCat | WWW: www.strucbiocat.oulu.fi
> Triacle Biocomputing | WWW: www.triacle-bc.com
>
>
Re: Cocoon 2.2 and sendmail
Posted by Andre Juffer <an...@oulu.fi>.
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=roche&email=webmaster@polymorphisme.org
There may be just a simple error in the generated XML that sendmail
receives.
On 09/05/11 11:27, Andy Stevens wrote:
>
> 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" <webmaster@polymorphisme.org
> <ma...@polymorphisme.org>> wrote:
> >
> >
> > 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}"/>
> > <map:parameter name="email" value="{request-param:email}"/>
> > <map:parameter name="id" value="{session:id}"/>
> > </map:transform>
> > <map:transform type="sendmail"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > That it's good :)
> >
> > But then I send an email, I have the reponce :
> >
> > <:result xmlns="http://apache.org/cocoon/transformation/sendmail">
> <:failure to="webmaster@polymorphisme.org
> <ma...@polymorphisme.org>">Invalid address</:failure>
> </:result>
> >
> > And my adresse email webmaster@polymorphisme.org
> <ma...@polymorphisme.org> is valide.
> >
> > I don't know what is the problem ! Thanks.
> >
> > G R
> >
> > www.polymorphisme.com <http://www.polymorphisme.com>
> > webmaster@polymorphisme.org <ma...@polymorphisme.org>
> > fixe : +33 (0)5.24.07.64.02
> > port : +33 (0)6.89.54.14.84Andy Stevens
> <insomniacpenguin@googlemail.com
> <ma...@googlemail.com>> a écrit :
> >
> >> 2011/5/9 Grégory Roche <webmaster@polymorphisme.org
> <ma...@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 :
> >>>
> >>> <map:match pattern="sendmail">
> >>> <map:generate src="xdocs/sendmail.xml"/>
> >>> <map:transform src="stylesheets/sendmail.xsl">
> >>> <map:parameter name="name"
> >>> value="{request-param:name}"/>
> >>> <map:parameter name="email" value="{request-param:email}"/>
> >>> <map:parameter name="id" value="{session:id}"/>
> >>> </map:transform>
> >>> <map:serialize type="xml"/>
> >>> </map:match>
> >>>
> >>> I'm sure that my params are good :)
> >>>
> >>> But then I send an email, I have nothing in my email box !!!
> >>
> >> Maybe I'm missing something here, but you don't appear to have called
> >> the sendmail transformer - the pipeline you quoted only has a
> >> generator, xslt transformation and xml serialiser...?
> >>
> >>
> >> Andy
> >> --
> >> http://pseudoq.sourceforge.net/
> >>
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: andre.juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
StrucBioCat | WWW: www.strucbiocat.oulu.fi
Triacle Biocomputing | WWW: www.triacle-bc.com
Re: Cocoon 2.2 and sendmail
Posted by Andy Stevens <in...@googlemail.com>.
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" <we...@polymorphisme.org> wrote:
>
>
> 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}"/>
> <map:parameter name="email" value="{request-param:email}"/>
> <map:parameter name="id" value="{session:id}"/>
> </map:transform>
> <map:transform type="sendmail"/>
> <map:serialize type="xml"/>
> </map:match>
>
> That it's good :)
>
> But then I send an email, I have the reponce :
>
> <:result xmlns="http://apache.org/cocoon/transformation/sendmail">
<:failure to="webmaster@polymorphisme.org">Invalid address</:failure>
</:result>
>
> And my adresse email webmaster@polymorphisme.org is valide.
>
> I don't know what is the problem ! Thanks.
>
> G R
>
> www.polymorphisme.com
> webmaster@polymorphisme.org
> fixe : +33 (0)5.24.07.64.02
> port : +33 (0)6.89.54.14.84Andy Stevens <in...@googlemail.com>
a écrit :
>
>> 2011/5/9 Grégory Roche <we...@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 :
>>>
>>> <map:match pattern="sendmail">
>>> <map:generate src="xdocs/sendmail.xml"/>
>>> <map:transform src="stylesheets/sendmail.xsl">
>>> <map:parameter name="name"
>>> value="{request-param:name}"/>
>>> <map:parameter name="email" value="{request-param:email}"/>
>>> <map:parameter name="id" value="{session:id}"/>
>>> </map:transform>
>>> <map:serialize type="xml"/>
>>> </map:match>
>>>
>>> I'm sure that my params are good :)
>>>
>>> But then I send an email, I have nothing in my email box !!!
>>
>> Maybe I'm missing something here, but you don't appear to have called
>> the sendmail transformer - the pipeline you quoted only has a
>> generator, xslt transformation and xml serialiser...?
>>
>>
>> Andy
>> --
>> http://pseudoq.sourceforge.net/
>>
Re: Cocoon 2.2 and sendmail
Posted by Grégory Roche <we...@polymorphisme.org>.
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}"/>
<map:parameter name="email" value="{request-param:email}"/>
<map:parameter name="id" value="{session:id}"/>
</map:transform>
<map:transform type="sendmail"/>
<map:serialize type="xml"/>
</map:match>
That it's good :)
But then I send an email, I have the reponce :
<:result xmlns="http://apache.org/cocoon/transformation/sendmail"> <:failure to="webmaster@polymorphisme.org">Invalid address</:failure> </:result>
And my adresse email webmaster@polymorphisme.org is valide.
I don't know what is the problem ! Thanks.
G R
www.polymorphisme.com
webmaster@polymorphisme.org
fixe : +33 (0)5.24.07.64.02
port : +33 (0)6.89.54.14.84Andy Stevens <in...@googlemail.com> a écrit :
> 2011/5/9 Grégory Roche <we...@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 :
>>
>> <map:match pattern="sendmail">
>> <map:generate src="xdocs/sendmail.xml"/>
>> <map:transform src="stylesheets/sendmail.xsl">
>> <map:parameter name="name"
>> value="{request-param:name}"/>
>> <map:parameter name="email" value="{request-param:email}"/>
>> <map:parameter name="id" value="{session:id}"/>
>> </map:transform>
>> <map:serialize type="xml"/>
>> </map:match>
>>
>> I'm sure that my params are good :)
>>
>> But then I send an email, I have nothing in my email box !!!
>
> Maybe I'm missing something here, but you don't appear to have called
> the sendmail transformer - the pipeline you quoted only has a
> generator, xslt transformation and xml serialiser...?
>
>
> Andy
> --
> http://pseudoq.sourceforge.net/
>
Re: Cocoon 2.2 and sendmail
Posted by Andy Stevens <in...@googlemail.com>.
2011/5/9 Grégory Roche <we...@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 :
>
> <map:match pattern="sendmail">
> <map:generate src="xdocs/sendmail.xml"/>
> <map:transform src="stylesheets/sendmail.xsl">
> <map:parameter name="name"
> value="{request-param:name}"/>
> <map:parameter name="email" value="{request-param:email}"/>
> <map:parameter name="id" value="{session:id}"/>
> </map:transform>
> <map:serialize type="xml"/>
> </map:match>
>
> I'm sure that my params are good :)
>
> But then I send an email, I have nothing in my email box !!!
Maybe I'm missing something here, but you don't appear to have called
the sendmail transformer - the pipeline you quoted only has a
generator, xslt transformation and xml serialiser...?
Andy
--
http://pseudoq.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.2 and sendmail
Posted by Søren Krum <so...@uninett.no>.
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 73557859
There are 10 different kind of people in the world, those who understand
binary and those who don't
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org