tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: UnknownHostException thrown from SmtpClient
Date Tue, 13 Nov 2001 22:51:41 GMT
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 = "support@royalsweeps.com";
>         String ToAddress = "design@crucial-systems.com";
>         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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message