camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: MailEndpoint requires username/authentication
Date Wed, 08 Oct 2008 19:36:25 GMT

I really think this is fixed in 1.5. You can try the 1.5-SNAPSHOT that you can get from:

We are closing in on a RC on the 1.5. We only have a few tickets left and some documentations
before the RC can be built.

Could you try the 1.5-SNAPSHOT version and let me know how it goes. If there is still an issue
then we might have time to get it fixed in 1.5.

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576

-----Original Message-----
From: Doug Douglass [] 
Sent: 8. oktober 2008 21:30
Subject: MailEndpoint requires username/authentication

Hello All,

I'm using Camel 1.4.0, trying to setup an smtp endpoint to send an email via
Spring xml, note that the smtp server in question does not require any

 <camelContext xmlns=""
trace="true" >
      <from uri="seda:eventProcessingErrors" />
      <setHeader headerName="from">
      <setHeader headerName="subject">
      <setHeader headerName="to">
      <to uri="smtp://localhost" />

The smpt component doc[1] implies that user-info/username is not required,
but the plain smtp uri above results in a NPE in
MailConfiguration.createJavaMailProperties() when attempting to put the null
username into the Properties.

Providing a fake user-info (smtp://foo@localhost) results in, some what
expectedly, authentication exceptions.

So, should MailConfiguration ignore null user-info/username and not try to
put them in the JavaMail Properties?



View raw message