javax.mail.SendFailedException

I received this error when sending an email to myself from the server

javax.mail.SendFailedExecption: Sending Failed;

nested exeception is:

javax.mail.SendFailedException: Invalid Addresses;

nested execption is:

javax.mail.SendFailedException: 550 5.1.1<uatregister.Settings.webmasterEmail>.....user unknown.

email address is in Settings.java

Any help would be greatly appreciated :)

The mon

[452 byte] By [jettimona] at [2007-11-26 17:33:06]
# 1
See if the following helps: http://www.sitepoint.com/forums/printthread.php?t=339698
satishva at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Is your username "uatregister.Settings.webmasterEmail"? If not, that'syour problem.It looks like you used the name of a property for the username,rather than the value of the property.
bshannona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
My email address is defined in the file Settings.java with the string webmasterEmail and lives in dir/ uatregister
jettimona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

And what code do you use to access that setting and give it to

JavaMail? That's where your mistake is.

You've done something like

msg.setRecipients(Message.RecipientType.TO, "uatregister.Settings.webmasterEmail");

when you should be doing something like

msg.setRecipients(Message.RecipientType.TO, uatregister.Settings.webmasterEmail);

bshannona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
code as follows:new transport.Email("uatregister.Settings.webmasterEmail", contact.get_first_name() + " " + contact.get_surname(), uatregister.Settings.emailServer, "", message, "Feedback", contact.get_email()).send();
jettimona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
I assume transport.Email is a class you wrote; it's certainly not a JavaMail class.I strongly suspect that your mistake is exactly as I suggested in my previousmessage. See the first parameter to that constructor? It probably shouldn't bea quoted string.
bshannona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7
thanks, will try this
jettimona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8
This has worked!!!! ..thank you very very much for this advice
jettimona at 2007-7-9 0:01:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...