Yep, that was it. I removed them and my page works.
Thanks a lot !!!
Antonio Gallardo wrote:
Hi Yves,
Remove geronimo-spec-activation-1.0.2-rc4.jar and
geronimo-spec-javamail-1.3.1-rc5.jar from the WEB-INF/lib
Best Regards,
Antonio Gallardo
Yves Vindevogel wrote:
Hi,
I can't get the sendmail generator to work.
I've created a very simple test
<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:match pattern="mail.xsp">
<map:generate src="mail.xsp" type="serverpages"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0">
<html>
<body>
<xsp:logic>
StringBuffer body = new StringBuffer();
body.append("\n");
body.append("--- Test mail ---\n\n");
</xsp:logic>
<sendmail:send-mail>
<sendmail:from>[EMAIL PROTECTED]</sendmail:from>
<sendmail:to>[EMAIL PROTECTED]</sendmail:to>
<sendmail:subject>Test</sendmail:subject>
<sendmail:smtphost>195.130.137.75</sendmail:smtphost>
<sendmail:body><xsp:expr>body.toString()</xsp:expr></sendmail:body>
<sendmail:on-success>
<p>Success</p>
</sendmail:on-success>
<sendmail:on-error>
<p>Error: <sendmail:error-message/></p>
</sendmail:on-error>
</sendmail:send-mail>
</body>
</html>
</xsp:page>
When I run the page, I do get a "success", but no mail arrives.
I have put the mail.jar and activation.jar (together with smtp.jar
and others from sun javamail) in /lib/local, in WEB-INF/lib,
somewhere everywhere possible.
I have recompiled Cocoon and I've looked into the config file, the
entry for sendmail xsp is there.
So, I don't know what's the matter with it ...
Any help ?
Yves
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
begin:vcard
fn:Yves Vindevogel
n:Vindevogel;Yves
org:Implements
adr:;;Kempische Steenweg 206;Hasselt;;3500;Belgium
email;internet:[EMAIL PROTECTED]
tel;work:+32 (11) 43 55 76
tel;home:+32 (11) 43 55 76
tel;cell:+32 (478) 80 82 91
x-mozilla-html:TRUE
url:http://www.implements.be
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]