We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

javax.mail.SendFailedException: Invalid Addresses

kwwells
kwwells asked
on
Medium Priority
2,728 Views
Last Modified: 2012-06-27
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

Comment
Watch Question

Commented:
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

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

________
radarsh

Author

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)  

Author

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



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

________
radarsh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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

Author

Commented:
WEB-INF/classes/util

Author

Commented:
how can I view the class path for this account
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.