commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul DeCoursey" <p...@decoursey.net>
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.

Paul




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 63.247.81.241

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1130)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:525)
	at javax.mail.Transport.send0(Transport.java:151)
	at javax.mail.Transport.send(Transport.java:80)
	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
	at org.apache.commons.mail.Email.send(Email.java:898)
	at org.apache.jsp.mtest_jsp._jspService(mtest_jsp.java:72)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
......

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.

Thanks,

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message