aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Relay access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Relay access denied" Watch "Relay access denied" New topic
Author

Relay access denied

Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
I''m trying to send a email message from my computer at work using these two classes:
SMTP.java


SMTPDemo.java


and this is the console output:


mailhost = smtp.verat.net/62.108.127.4
localhost= PRISTIC/192.168.2.105
SMTP constructor done

220 olc-12.verat.net ESMTP VeratNet Mail
HELO PRISTIC
250 olc-12.verat.net
MAIL From:<pedjasmek@verat.net>
250 2.1.0 Ok
RCPT TO:<pedjasmek@gmail.com>
554 5.7.1 <pedjasmek@gmail.com>: Relay access denied
DATA
.
502 5.5.2 Error: command not recognized
QUIT





Help please!!!
Thanks!!!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
No respectable mail server in the world accepts connections without authentication these days.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Unless it's your ISP and you're connected to that ISP while sending. My ISP certainly doesn't require me to login. It sees I'm using their connection so I can use their SMTP server, also for other email accounts.

So Predrag, the question is, are you using a verat.net connection at the moment? If so, contact them about the problem. If not, try entering your login credentials.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
Rob Prime wrote:My ISP certainly doesn't require me to login. It sees I'm using their connection so I can use their SMTP server, also for other email accounts.

So you are, in fact, authenticated, as far as your ISP is concerned. :-)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

True, true.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Relay access denied