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 authentication:
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring" trace="true" > <route> <from uri="seda:eventProcessingErrors" /> <setHeader headerName="from"> <el>${"<![CDATA[...]]>"}</el> </setHeader> <setHeader headerName="subject"> <el>${"<![CDATA[...]]>"}</el> </setHeader> <setHeader headerName="to"> <el>${"<![CDATA[...]>"}</el> </setHeader> <to uri="smtp://localhost" /> </route> </camelContext> 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://[EMAIL PROTECTED]) 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? TIA, Doug [1] http://activemq.apache.org/camel/mail.html
