Link to home
Create AccountLog in
Avatar of kwwells
kwwellsFlag for United States of America

asked on

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

Avatar of fargo
fargo

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
Which server are you making use of? Check the logs for more information on the exception.

________
radarsh
Avatar of kwwells

ASKER

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)  
Avatar of kwwells

ASKER

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



ASKER CERTIFIED SOLUTION
Avatar of radarsh
radarsh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of kwwells

ASKER

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
Avatar of kwwells

ASKER

WEB-INF/classes/util
Avatar of kwwells

ASKER

how can I view the class path for this account