>>>>> Christian Kruggel writes:

    Christian> Hi there!  Using Java 1.1.7B on a Linux machine and
    Christian> running the appended programm leads to the following
    Christian> Exception:

    Christian> java.net.UnknownHostException: mailhost

Sounds like a setup problem. Can you ping mailhost?  Does 'telnet
localhost smtp' work?

    Christian> Really strange, because running _exactly_ the same
    Christian> programm on a Sparc 5 with Sunīs JDK 1.1.8 or 1.2b just
    Christian> does what itīs supposed to do: It sends an e-mail.  I
    Christian> attempted to explicitly change the
    Christian> mailhost-system-property in the linux-environment a few
    Christian> times but nothing worked, the UnknownHostException
    Christian> apperas any timy I use linux. Even fiddeling arround
    Christian> with the mailto-protocol itself didnī t do anything to
    Christian> the everlasting exception. Does anybody know whatīs
    Christian> wrong with linux or the programm?

Your code works for me.  

The mailto lookup sequence is System.getProperty("mail.host"),
localhost, mailhost.  In your case it looks like SendMail fails to
open a smtp connection to System.getProperty("mail.host") and to
localhost, and so it tries mailhost but the lookup fails.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to