On Tue, Dec 11, 2012 at 1:33 PM, nambiar.arunkumar
<nambiar_arunku...@yahoo.com> wrote:
> When iam trying to send the mail using *smtp*component (code below) i get
> error
>
> *Error processing exchange. Exchange[Message: Testing SMTP mail.]. Caused
> by: [org.springframework.mail.MailAuthenticationException - Authentication
> failed; nested exception is javax.mail.AuthenticationFailedException]*
>
>
> But i can send mail using plain java code by setting the property*
> mail.smtp.auth* to *false*.
>
> Iam using camel 2.2.0-fuse-02-00.
>
> Anybody encountered such error?
>
> *from("direct:testSmptMailServer")
> .setBody(constant("Testing SMTP mail."))
> .setHeader("To", constant("a...@supporteam.com"))
> .setHeader("Subject",constant("Testing smtp server"))
> .setHeader("From", constant("no-re...@ssupport.com"))
> .to("smtp://vp-smtp.sinos.com.root:25");*
>

Hi can you try with

 .to("smtp://vp-smtp.sinos.com.root:25?mail.smtp.auth=false");



> Thanx
> Arun
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Cannot-sent-mail-using-smtp-component-when-smtp-server-require-not-credential-tp5723903.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to