The Artima Developer Community
Sponsored Link

Java Answers Forum
Java mail - unknown host

3 replies on 1 page. Most recent reply: Apr 15, 2003 8:22 AM by Ey?un Nielsen

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
rie

Posts: 2
Nickname: ries
Registered: Apr, 2003

Java mail - unknown host Posted: Apr 11, 2003 2:29 AM
Reply to this message Reply
Advertisement
Java mail
hi

I am quite new to java.. I have written some code that requests user input to create a mail then should be sent.

I am using my companies smtp address to send it through but i keep getting the exception unknown host, however when a colleague tries to run my code on there pc on the same network it works correctly. Really impressed my code works but i want to play with it and add things to it and cannot!

Is there any settings or rights i should have on my pc to enable me to get this code to work. Also does anyone know of any external smtp hosts i can send mails from.

thanks
A


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Java mail - unknown host Posted: Apr 11, 2003 2:44 AM
Reply to this message Reply
As far as I know there is no external SMTP hosts out there (if there was then it would be probably be used and abused by junk e-mailers...)

Talk to your company's IT person and see if they can help! :)

Adam

rie

Posts: 2
Nickname: ries
Registered: Apr, 2003

Re: Java mail - unknown host Posted: Apr 11, 2003 2:51 AM
Reply to this message Reply
I already have done... i am in IT i asked the support people to have a look and they cannot work it out! just wanted to know if there was anything obvious. I have the right privelidges i can ping it from dos and can use my e-mail correctly but it does not seem to work through the code!

Ey?un Nielsen

Posts: 3
Nickname: eyun
Registered: Jan, 2003

Re: Java mail - unknown host Posted: Apr 15, 2003 8:22 AM
Reply to this message Reply
Im just guessing here... You are using Windows? ;-)

If so, try using your own smtp server:

http://www.postcastserver.com/

Flat View: This topic has 3 replies on 1 page
Topic: Writing files in Java Previous Topic   Next Topic Topic: iterators

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use