× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



--
[ Picked text/plain from multipart/alternative ]
Yes,
the SMTP server (is an AS/400) is accessed in the exact same way over its IP 
address, this work from Win clients but not from an AS/400
client (same JDK and PTS's level).

Someone know where/how the domain name is read from Java ?  Is the client or 
the AS/400 SMTP server ?

On Fri, 20 Dec 2002 13:01:22 +0100, rune@kaus.no wrote:


>Are you sure that the smtp server name you use is a known host for the (in
>this case) client AS/400, or that the syntax of the smtp server name is
>correct?
>You can verify this by issuing a ping command from a command line

>HTH.

>Rune




>                      "Franco Biaggi"
>                      <fbiaggi@ticino.c        To:       
>"java400-l@midrange.com" <java400-l@midrange.com>
>                      om>                      cc:
>                      Sent by:                 Subject:  RE: Strange problem 
>with JavaMail, Domain name missing.
>                      java400-l-admin@m
>                      idrange.com


>                      20.12.2002 11:14
>                      Please respond to
>                      java400-l






>--
>[ Picked text/plain from multipart/alternative ]
>Thanks,

>The invalid address array is emty.

>Any others hit ?

>On Thu, 19 Dec 2002 23:24:08 -0800, Gary L Peskin wrote:

>>How are you loading things from the .ini file?  Could this be an
>>ASCII/EBCDIC problem.  If you try what I said (catch the
>SendFailedException
>>and look at getInvalidAddresses()), we'll be able to look at the addresses
>>giving rise to the SendFailedException.

>>Gary

>>> -----Original Message-----
>>> From: java400-l-admin@midrange.com
>>> [mailto:java400-l-admin@midrange.com] On Behalf Of Franco Biaggi
>>> Sent: Thursday, December 19, 2002 11:19 PM
>>> To: java400-l@midrange.com
>>> Subject: RE: Strange problem with JavaMail, Domain name missing.
>>>
>>>
>>> --
>>> [ Picked text/plain from multipart/alternative ]
>>> Thanks,
>>> but all addresses are fix, loaded from an .ini file and
>>> equals for each environment.
>>>
>>> This should not be the problem.
>>>
>>> I receive the same error if the public domain is managed by a
>>> provider (cannot send direct via SMTP), only the smtp name of
>>> the provider works.
>>>
>>> But in my case the domanin name is mapped by the firewall
>>> direct to the AS/400.
>>>
>>> The AS/400 (smtp host) is defined (in the properties) with
>>> the IP address.
>>>
>>> Any other ideas ?
>>>
>>> Thanks.
>>>
>>>
>>> On Thu, 19 Dec 2002 09:57:45 -0800, Gary L Peskin wrote:
>>>
>>> >Try catching the SendFailedException.  Then do a
>>> getInvalidAddresses()
>>> >which returns Address[].  Print out each element in the
>>> array and you
>>> >should see your problem.
>>>
>>> >Alternatively, you could also do a getAllRecipients() on the Message
>>> >that you're trying to send and do the same thing.
>>>
>>> >HTH,
>>> >Gary
>>>
>>> >> -----Original Message-----
>>> >> From: java400-l-admin@midrange.com
>>> >> [mailto:java400-l-admin@midrange.com] On Behalf Of Franco Biaggi
>>> >> Sent: Thursday, December 19, 2002 2:19 AM
>>> >> To: JAVA400-L@midrange.com
>>> >> Subject: Strange problem with JavaMail, Domain name missing.
>>> >>
>>> >>
>>> >> Hello,
>>> >>
>>> >> JDK 1.3
>>> >> Strange problem, the application work fine on Window using
>>> the AS/400
>>> >> as SMTP server, the application work fine on the AS/400
>>> itself, the
>>> >> application running on another AS/400 using the same
>>> AS/400 as SMTP
>>> >> server generate the error.
>>> >>
>>> >> Thanks for any help.
>>> >>
>>> >> javax.mail.SendFailedException: Sending failed;
>>> >> nested exception is:
>>> >> javax.mail.MessagingException: 501 Syntax error.  Domain name
>>> >> missing. java/lang/Throwable.<init>(Ljava/lang/String;)V+4
>>> >> (Throwable.java:90)
>>> >> javax/mail/MessagingException.<init>(Ljava/lang/String;Ljava/l
>>> >> ang/Exception;)V+0 (MessagingException.java:55)
>>> >> javax/mail/SendFailedException.<init>(Ljava/lang/String;Ljava/
>>> >> lang/Exception;[Ljavax/mail/Address;[Ljavax/mail/Address;
>>> >> [Ljavax/mail/Address;)V+0 (SendFailedException.java:76)
>>> >> il/Address;)V+0 (SendFailedException.java:76)
>>> >> javax/mail/Transport.send0(Ljavax/mail/Message;[Ljavax/mail/Ad
>>> >> dress;)V+0 (Transport.java:110)
>>> >> javax/mail/Transport.send(Ljavax/mail/Message;)V+0
>>> >> (Transport.java:80) ....
>>> >>
>>> >> <html>
>>> >>
>>> >> <head>
>>> >> <meta http-equiv="Content-Type" content="text/html;
>>> >> charset=iso-8859-1"> <meta name="Author" content="Franco Biaggi">
>>> >> <meta name="GENERATOR" content="Franco Biaggi"> </head>
>>> >>
>>> >> <body>
>>> >>
>>> >> <p>&nbsp; </p>
>>> >>
>>> >> <table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
>>> >>   <tr>
>>> >>     <td width="446"><font face="Comic Sans MS"><small><small><br>
>>> >>     <font color="#3333FF"><a
>>> >> href="http://www.ticino.com/usr/fbiaggi/";>Franco
>>> >> Biaggi</a></font><small><br>
>>> >>     <font color="#3333FF"><a href="http://www.sisa.ch";>SISA Studio
>>> >> Informatica SA</a></font><small><small><small> <br>
>>> >>     </small></small></small><font color="#3333FF">R&amp;D
>>> >> Services</font><small><small><small>
>>> >>     <br>
>>> >>     </small></small></small><font color="#3333FF">Via Carvina
>>> >> 1</font><small><small><small> <br>
>>> >>     </small></small></small><font color="#3333FF">CH-6807
>>> >> Taverne</font><small><small><small> <br>
>>> >>     </small></small></small><font color="#3333FF">Efax +1 801 705
>>> >> 2839</font></small></small></small><br>
>>> >> <br>
>>> >> </font></td>
>>> >>   </tr>
>>> >> </table>
>>> >> </body>
>>> >> </html>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> This is the Java Programming on and around the iSeries / AS400
>>> >> (JAVA400-L) mailing list To post a message email:
>>> >> JAVA400-L@midrange.com To subscribe, unsubscribe, or change list
>>> >> options,
>>> >> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>>> >> or email: JAVA400-L-request@midrange.com
>>> >> Before posting, please take a moment to review the archives at
>>> >> http://archive.midrange.com/java400-l.
>>> >>
>>>
>>> >_______________________________________________
>>> >This is the Java Programming on and around the iSeries / AS400
>>> >(JAVA400-L) mailing list To post a message email:
>>> >JAVA400-L@midrange.com To subscribe, unsubscribe, or change list
>>> >options,
>>> >visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>>> >or email: JAVA400-L-request@midrange.com
>>> >Before posting, please take a moment to review the archives
>>> >at http://archive.midrange.com/java400-l.
>>>
>>>
>>>
>>> <html>
>>>
>>> <head>
>>> <meta http-equiv="Content-Type" content="text/html;
>>> charset=iso-8859-1"> <meta name="Author" content="Franco
>>> Biaggi"> <meta name="GENERATOR" content="Franco Biaggi"> </head>
>>>
>>> <body>
>>>
>>> <p>&nbsp; </p>
>>>
>>> <table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
>>>   <tr>
>>>     <td width="446"><font face="Comic Sans MS"><small><small><br>
>>>     <font color="#3333FF"><a
>>> href="http://www.ticino.com/usr/fbiaggi/";>Franco
>>> Biaggi</a></font><small><br>
>>>     <font color="#3333FF"><a href="http://www.sisa.ch";>SISA
>>> Studio Informatica SA</a></font><small><small><small> <br>
>>>     </small></small></small><font color="#3333FF">R&amp;D
>>> Services</font><small><small><small>
>>>     <br>
>>>     </small></small></small><font color="#3333FF">Via Carvina
>>> 1</font><small><small><small> <br>
>>>     </small></small></small><font color="#3333FF">CH-6807
>>> Taverne</font><small><small><small> <br>
>>>     </small></small></small><font color="#3333FF">Efax +1 801
>>> 705 2839</font></small></small></small><br>
>>> <br>
>>> </font></td>
>>>   </tr>
>>> </table>
>>> </body>
>>> </html>
>>>
>>>
>>> --
>>>
>>>
>>> _______________________________________________
>>> This is the Java Programming on and around the iSeries /
>>> AS400 (JAVA400-L) mailing list To post a message email:
>>> JAVA400-L@midrange.com To subscribe, unsubscribe, or change
>>> list options,
>>> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>>> or email: JAVA400-L-request@midrange.com
>>> Before posting, please take a moment to review the archives
>>> at http://archive.midrange.com/java400-l.
>>>


>>_______________________________________________
>>This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
>mailing list
>>To post a message email: JAVA400-L@midrange.com
>>To subscribe, unsubscribe, or change list options,
>>visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>>or email: JAVA400-L-request@midrange.com
>>Before posting, please take a moment to review the archives
>>at http://archive.midrange.com/java400-l.



><html>

><head>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
><meta name="Author" content="Franco Biaggi">
><meta name="GENERATOR" content="Franco Biaggi">
></head>

><body>

><p>&nbsp; </p>

><table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
>  <tr>
>    <td width="446"><font face="Comic Sans MS"><small><small><br>
>    <font color="#3333FF"><a href="http://www.ticino.com/usr/fbiaggi/
>">Franco Biaggi</a></font><small><br>
>    <font color="#3333FF"><a href="http://www.sisa.ch";>SISA Studio
>Informatica SA</a></font><small><small><small> <br>
>    </small></small></small><font color="#3333FF">R&amp;D
>Services</font><small><small><small>
>    <br>
>    </small></small></small><font color="#3333FF">Via Carvina
>1</font><small><small><small> <br>
>    </small></small></small><font color="#3333FF">CH-6807
>Taverne</font><small><small><small> <br>
>    </small></small></small><font color="#3333FF">Efax +1 801 705
>2839</font></small></small></small><br>
><br>
></font></td>
>  </tr>
></table>
></body>
></html>


>--


>_______________________________________________
>This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
>mailing list
>To post a message email: JAVA400-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>or email: JAVA400-L-request@midrange.com
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/java400-l.






>_______________________________________________
>This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
>mailing list
>To post a message email: JAVA400-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
>or email: JAVA400-L-request@midrange.com
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/java400-l.



<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Franco Biaggi">
<meta name="GENERATOR" content="Franco Biaggi">
</head>

<body>

<p>&nbsp; </p>

<table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
  <tr>
    <td width="446"><font face="Comic Sans MS"><small><small><br>
    <font color="#3333FF"><a href="http://www.ticino.com/usr/fbiaggi/";>Franco 
Biaggi</a></font><small><br>
    <font color="#3333FF"><a href="http://www.sisa.ch";>SISA Studio Informatica 
SA</a></font><small><small><small> <br>
    </small></small></small><font color="#3333FF">R&amp;D 
Services</font><small><small><small>
    <br>
    </small></small></small><font color="#3333FF">Via Carvina 
1</font><small><small><small> <br>
    </small></small></small><font color="#3333FF">CH-6807 
Taverne</font><small><small><small> <br>
    </small></small></small><font color="#3333FF">Efax +1 801 705 
2839</font></small></small></small><br>
<br>
</font></td>
  </tr>
</table>
</body>
</html>


--




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.