commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul DeCoursey" <>
Subject RE: [EMAIL] Problem sending on tomcat
Date Wed, 29 Mar 2006 21:57:30 GMT

Ok, I've found out what the issue is, apparently the server variable is
being set with a System property, and it doesn't work so good within a
shared tomcat environment.  I'll be posting a bug if I can verify that
it's still being done in the latest source.


On Mar 29, 2006, at 3:22 PM, Paul DeCoursey wrote:

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:

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

View raw message