Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Relay access denied

 
Predrag Ristic
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No respectable mail server in the world accepts connections without authentication these days.
 
Rob Spoor
Sheriff
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True, true.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic