hello guys,
I have made an application that sends emails (with attachments) to different users. It works fine when I use an email account (smtp server) from my network but not otherwise.... For example if i use it from my university then uni's smtp server must be used. But when i run it from my job, my uni's server does not work (vice versa).
I get the following exceptions:
**************************************************************************************************************
Thu Feb 05 12:46:40 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 <
[email protected]>: Recipient address rejected: Relay access denied
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)....
*************************************************************************************************************
Thu Feb 05 12:30:58 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 504 <cube>: Helo command rejected: need fully-qualified hostname
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)
***********************************************************************************************************
my hostname is cube. Can someone please help? It is driving me crazy ::

.
I am using windows xp
cheers
Awan