cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Corin Moss" <>
Subject RE: Sendmail action won't use the smtphost I assign
Date Fri, 09 Jul 2004 03:59:03 GMT

Hi There,

I'm not entirely sure if it's related, but you might want to look at
this bug:

Which relates to the resetting of the SMTP Host.



	-----Original Message-----
	From: Gerben ten Wolde []
	Sent: Friday, 9 July 2004 1:49 a.m.
	Subject: Sendmail action won't use the smtphost I assign

	Hi there,
	I'm trying to send an automated mail reply as part of a webapp
I'm currently developing. I'm using cocoon 2.1.5 and tomcat 4.1.3. I've
placed the mail.jar and activation.jar in the WEB-INF/lib dir of my
	I'm using the following matcher to test sending mail:

	<map:match pattern="testSendmail">
	    <map:act type="sendmail">
	        <map:parameter name="smtphost" value=""/>
	        <map:parameter name="from" value="[valid email
	        <map:parameter name="to" value="[valid email address]"/>
	        <map:parameter name="subject" value="Cocoon sendmail
	        <map:parameter name="body" value="Test text"/>
	        <!-- -->
	        <map:read src="content/succes.html"
	    <map:read src="content/failure.html" mime-type="text/html"/>
	Sadly I alway see the failure page. Looking in sitemap.log I
found the following (I marked the lines of interest with [***]):
	DEBUG   (2004-07-08) 15:41.28:343   [sitemap]
(/vervonden/testSendmail) http11569-Processor3/PreparableMatchNode:
Matcher 'wildcard' matched prepared pattern 'testSendmail' at
	DEBUG   (2004-07-08) 15:41.28:343   [sitemap]
(/vervonden/testSendmail) http11569-Processor3/InvokeContext:
	Current Sitemap Parameters:
	PARAM: '0' VALUE: 'testSendmail'
	DEBUG   (2004-07-08) 15:41.28:343   [sitemap.action.sendmail]
(/vervonden/testSendmail) http11569-Processor3/Sendmail: SendmailAction:
act start
	[***] DEBUG   (2004-07-08) 15:41.28:343
[sitemap.action.sendmail] (/vervonden/testSendmail)
http11569-Processor3/Sendmail: SendmailAction: overriding default smtp
server, using
	ERROR   (2004-07-08) 15:41.29:406   [sitemap.action.sendmail]
(/vervonden/testSendmail) http11569-Processor3/Sendmail: SendmailAction:
MessagingException: An error occured while sending email.
	javax.mail.MessagingException: Sending failed;
	  nested exception is:
	[***] class javax.mail.MessagingException: Could not connect to
SMTP host:, port: 25;
	  nested exception is: Connection refused: connect
	 at org.apache.cocoon.acting.Sendmail.act(
	<-- continues-->
	It seems that eventhough the action is aware of the smtp server
I assign, the underlying mail component isn't.
	Anyone got any idea what (if anything) I am missing here?
	Gerben ten Wolde

CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.

For more information on the Television New Zealand Group, visit
us online at
View raw message