You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andre Juffer <aj...@sun3.oulu.fi> on 2005/04/07 16:46:50 UTC
SendMailTransformer
Dear List,
I have some problem to get the SendMailTransformer to work. The error is
ERROR (2005-04-07) 17:04.24:477 [sitemap.transformer.sendmail]
(/sopas/460e437f8f380e892a7e5f6843611d491f5b6950.continue) http-8080
-Processor24/SendMailTransformer: Exception sending mail
javax.mail.NoSuchProviderException: smtp
This would seem to indicate that there is no provider 'smtp'. I know
that the javax.activation.* package is very easy to program (I did
myself and it was easy to get it work), so I would expect the
Transformer to work.
I use
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:email="http://apache.org/cocoon/transformation/sendmail">
<email:sendmail>
<email:to>andre.juffer@oulu.fi</email:to>
<email:subject>Testing message</email:subject>
<email:body>
Just some text
</email:body>
</email:sendmail>
<document>
while in the sitemap, there is
<map:transformer name="sendmail" logger="sitemap.transformer.sendmail"
src="org.apache.cocoon.mail.transformation.SendMailTransformer">
<smtphost>localhost</smtphost>
<from>andre.juffer@oulu.fi</from>
</map:transformer>
So, in fact sending emails to myself.
I have no trouble at all to send emails with sendmail (or postfix) or
whatsoever (I can easily test this). I therefore believe that there may
be a communication error between the SendMailTransformer and sendmail
(or postfix).
I noticed that on the list a number of people have had some problems
with this Transformer. Possibly one of you got things under control and
could help me to get this going.
Thanks,
--
Andre H. Juffer | Phone: +358-8-553 1161
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: SendMailTransformer
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
Gregor J. Rothfuss wrote:
> Andre Juffer wrote:
>
>> Dear List,
>>
>> I have some problem to get the SendMailTransformer to work. The error is
>>
>> ERROR (2005-04-07) 17:04.24:477 [sitemap.transformer.sendmail]
>> (/sopas/460e437f8f380e892a7e5f6843611d491f5b6950.continue) http-8080
>> -Processor24/SendMailTransformer: Exception sending mail
>> javax.mail.NoSuchProviderException: smtp
>
>
> did you install javamail?
I have in WEB-INF/lib:
activation.jar
mailapi.jar
Of course, you are entirely right! I simply "forgot" to copy imap.jar
pop3.jar and smtp.jar as well. Shame on me ....
It is working now. Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
Andre H. Juffer | Phone: +358-8-553 1161
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: SendMailTransformer
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Andre Juffer wrote:
> Dear List,
>
> I have some problem to get the SendMailTransformer to work. The error is
>
> ERROR (2005-04-07) 17:04.24:477 [sitemap.transformer.sendmail]
> (/sopas/460e437f8f380e892a7e5f6843611d491f5b6950.continue) http-8080
> -Processor24/SendMailTransformer: Exception sending mail
> javax.mail.NoSuchProviderException: smtp
did you install javamail?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org