commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul DeCoursey" <>
Subject [EMAIL] Problem sending on tomcat
Date Wed, 29 Mar 2006 21:22:08 GMT
I've looked around a bit and gotten nothing but flack from my provider.
The sending works fine on my development server.  But on production I
can't get it to send, I get this error:

javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	class com.sun.mail.smtp.SMTPAddressFailedException: 501 5.7.1 This
system is not configured to relay mail from  to  for

	at com.sun.mail.smtp.SMTPTransport.rcptTo(
	at com.sun.mail.smtp.SMTPTransport.sendMessage(
	at javax.mail.Transport.send0(
	at javax.mail.Transport.send(
	at org.apache.commons.mail.Email.sendMimeMessage(
	at org.apache.commons.mail.Email.send(
	at org.apache.jsp.mtest_jsp._jspService(
	at org.apache.jasper.runtime.HttpJspBase.service(

My provider says I need to use authentication, which makes little sense
to me, if the world can send me an email then why can't the server!??! 
Anyway, when I add the setAuthentication with the correct username and
password it doesn't work.  I can get it to work if I use Java Mail
directly using the same username and pass.  What is the problem? I am
using Email 1.0.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message