• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Relay access denied

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No respectable mail server in the world accepts connections without authentication these days.
 
Sheriff
Posts: 22157
117
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 22157
117
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
True, true.
 
reply
    Bookmark Topic Watch Topic
  • New Topic