• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2645
  • Last Modified:

javax.mail.SendFailedException: Invalid Addresses

Hello

I cannot find the cause nor the solution to this problem and hope that someone can shed some light on it.

When we click the email send button we get this error message javax.mail.SendFailedException: Invalid Addresses

This website was migrated from one server to another.  The application was working perfectly on the old server.

Would appreciate any advice to solve this problem.

Regards

Ken

0
kwwells
Asked:
kwwells
  • 5
  • 2
1 Solution
 
fargoCommented:
Hi,

This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it. Check your ISP's smtp mail server settings and adapt them.

fargo
0
 
radarshCommented:
Which server are you making use of? Check the logs for more information on the exception.

________
radarsh
0
 
kwwellsAuthor Commented:
I am running a linux (fedora) server, the application runs under tomcat.  I have checked the catalina.log which show the loading of modules but no exception for that user.  The sendmail log shows very little for that user ( -  - mikeippo x 32104 32105    /home/mikeippo /bin/bash), the apache error logs do not show this error. Could this be an application generated error?

I have asked the hosting company if there is a sendmail configuration file as I am trying to verify the smtp address that this is using.  The hosting company beleives that SMTP dependant applications would use 'localhost' or 127.0.0.1 for communication to the SMTP server if it was not specified, i am trying to verify that.

Ken
OS Info

Operating system Linux
Kernel version 2.6.5-1.358smp
Machine Type i686
Apache version 1.3.34 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.1
MySQL version 4.0.25-standard
cPanel Build 10.8.1-RELEASE 113
Theme cPanel X v2.5.0  
cPanel Pro 1.0 (RC36)  
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kwwellsAuthor Commented:
Hi,
Thanks for the help it was an SMTP problem.

I have another problem with the resolution of this error.

I have a problem compiling the class.

This is the error I get,  am I missing a parameter?


root@server101 [/home/mikeippo/www/WEB-INF/classes]# javac -J-Xms48m util/UserControl.java

util/UserControl.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
                          ^
1 error

I appreciate your help

Ken



0
 
radarshCommented:
Put the servlet-api.jar from your tomcat lib directory into your classpath.

________
radarsh
0
 
kwwellsAuthor Commented:
Hello

I copied servlet-api.jar to the following directories and still get this error

root@server101 [/home/mikeippo/www/WEB-INF/classes]# javac -J-Xms48m util/UserControl.java
util/UserControl.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
                          ^
1 error
root@server101 [/home/mikeippo/www/WEB-INF/classes]#

The folders are

WEB-INF
WEB-INF/lib
WEB-INF/lib/javac/
WEB-INF/lib/javac/servlets
WEB-INF/classes
WEB-INF/Classes/util

Ken
0
 
kwwellsAuthor Commented:
WEB-INF/classes/util
0
 
kwwellsAuthor Commented:
how can I view the class path for this account
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now