Dear Dspace General,


I am having a real problem getting email to work from DSpace.


When I try and register a new user I am getting the 'Internal Error has occurred...' message


The logs show the error as:


2008-03-12 16:39:08,549 WARN @ Unable to send email alert
        at java.util.Hashtable.put(
        at org.dspace.core.Email.send(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.ApplicationDispatcher.invoke(
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(
        at org.apache.catalina.core.ApplicationDispatcher.doForward(
        at org.apache.catalina.core.ApplicationDispatcher.forward(
        at org.apache.catalina.core.StandardHostValve.custom(
        at org.apache.catalina.core.StandardHostValve.throwable(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
        at org.apache.tomcat.util.threads.ThreadPool$


My config file looks like this:


##### Email settings ######

# SMTP mail server

# SMTP mail server authentication username and password (if required)
# mail.server.username = myusername
# mail.server.password = mypassword

# From address for mail
mail.from.address =

# Currently limited to one recipient!
feedback.recipient =

# General site administration (Webmaster) e-mail
mail.admin =

# Recipient for server errors and alerts
alert.recipient =

I notice the only other person to have this problem on the list had an issue with the wrong java version.


My version is the 1.4 one from Sun Systems with the apache compatibility package installed:


ts-repo1:# java -version
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)


Platform details are:


SLES 10.1

Tomcat 5.5


I thought the error may have occurred because I was running tomcat as root and had built dspace as the dspace user. So I rebuilt dspace as root, but this did not cure the problem. I have no idea what the problem is. The mail server works fine for other apps and the firewall is not blocking port 25...


If anyone can help I'd appreciate it





Mr. Alexander Roberts

Web Development Officer

Library and Information Services

Swansea University/Prifysgol Abertawe

+44 (0)1792 513239