× 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.



Without getting too much into it, try something like this one:

Properties myProperties = System.getProperties();
myProperties.put("mail.smtp.localhost", "localhost");

Vanja Jovic,

Canada



fbiaggi@ticino.com wrote:

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/lang/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/Address;)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>  </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&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.





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.