• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Relay Access denied /fully-qualified hostname

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "relay access denied" error is coming from the server; it's telling you that computers from your work network can't use your University's mail server to send mail -- which is a good thing (cuts down on spam.)
The only solution is that your program has to use a mail server which is appropriate for where the program is installed.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic