On Tue, 13 Nov 2001, felix wrote: > [snip] > > i have exim (http://www.exim.org) installed (it came with our dedicated > server). it appears to be more robust in terms of queuing, freezing, > unfreezing, managing and retrying than classic sendmail. > > with xwindows you can open a manager to sort through the queue. > > > of course i'm still getting this > > javax.servlet.ServletException: Sending failed; > nested exception is: > javax.mail.MessagingException: 501 syntactically invalid HELO > argument(s) > > though it should be an exact replacement. > > code is dirt simple: > > String FromAddress = "[EMAIL PROTECTED]"; > String ToAddress = "[EMAIL PROTECTED]"; > String Subject = "testttjavamail"; > String Body = " bodydddyyy"; > > Properties p = System.getProperties(); > p.put("mail.host","209.41.200.16"); > > MimeMessage message = new MimeMessage(Session.getInstance(p, null)); > message.setFrom(new InternetAddress(FromAddress)); > message.setRecipients(Message.RecipientType.TO, > InternetAddress.parse(ToAddress)); > message.setSubject(Subject); > message.setText(Body); > > Transport.send(message); >
This sounds like a good question for the JavaMail interest mailing list, once you verify that it happens to you in a stand-alone Java application as well. Since it's a javax.mail.MessagingException, it's not coming from Tomcat directly. You should be able to find a pointer to the mailing list on the JavaMail page at java.sun.com. Craig -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>