Title: Message
I had the same error. I had to set the SMTP server in cocoon.xconf to get it to work:
 
  <component class="org.apache.cocoon.mail.MailMessageSender" logger="core.mail.MailSender" role="org.apache.cocoon.mail.MailSender">
      <parameter name="smtp-host" value="my-smtp-server.foo.com"/>
  </component>
--
Daniel Craigmile 
 
 -----Original Message-----
From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 2:15 PM
To: [EMAIL PROTECTED]
Subject: Sendmail failing

Hi,


I'm running an XSP page on my server. It returns this error


Sending failed; nested exception is: class javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25; nested exception is: java.net.ConnectException: Connection refused


However, my code looks like this


<sendmail:send-mail>

<sendmail:from>[EMAIL PROTECTED]</sendmail:from>

<sendmail:to>[EMAIL PROTECTED]</sendmail:to>

<sendmail:subject>Reactie op de jobaanbieding</sendmail:subject>

<sendmail:smtphost>195.238.3.128</sendmail:smtphost>

<sendmail:body><xsp:expr>body.toString()</xsp:expr></sendmail:body>



Any idea why this is not working ?

It should try to connect to 195... right ?


I have access to the outside world, so that cannot be the problem.

Reply via email to