You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mike Oliver <Mi...@open4businessonline.com> on 2021/05/21 03:57:05 UTC

SMTP Problems

I am trying every possibility.

I need to send email through gmail from my camel integration.

I have tried going to smtp.gmail.com but cannot make it work.  I tried the
camel-smtp and smtps components and even the camel-google-mail component.

Giving up on going direct I chose an smtp relay service SendInBlue.

Here is my context.

<camelContext id="_deadletterchannelcontext1" xmlns="
http://camel.apache.org/schema/blueprint">
        <route id="_deadletterchannelroute1">
            <from id="_from1" uri="direct-vm:deadletterchannel"/>
            <setHeader headerName="subject" id="_setHeader1">
                <constant>""Error Message</constant>
            </setHeader>
            <setBody id="_setBody1">
                <constant>""Helo World, Error Body!</constant>
            </setBody>
            <log id="_log1" message="Dead Letter Channel body = ${body},
headers = ${headers}"/>
            <to id="_to1" uri="smtps://
smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
&amp;password=blablabla&amp;username=mikeoliveraz@open4businessonline.com"/>
        </route>
    </camelContext>

Testing gives me the following error stack.

avax.mail.MessagingException: Could not connect to SMTP host:
smtp-relay.sendinblue.com, port: 587;
  nested exception is:
	javax.net.ssl.SSLException: Connection reset
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
	at javax.mail.Service.connect(Service.java:366)
	at org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
	at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)





*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ

Re: SMTP Problems

Posted by Michael Oliver <mi...@gmail.com>.
Tried on 8 and 11, thought of that.

My guess is that my ISP is blocking SMTP to prevent spammers.  I don't have
a fixed up address to test from so I may be fighting an unwinnable fight.

On Mon, May 24, 2021, 3:39 PM William Juwono <wi...@izeno.com>
wrote:

> Ok. because I saw your codes was using smtp and port 465
>
> 465 is ssl, 587 is tls, both are smtps
> So you may need to check your java versions and the certs it supports
>
> On Mon, May 24, 2021 at 3:23 PM Mike Oliver <
> MikeOliverAZ@open4businessonline.com> wrote:
>
> > William,
> >
> > Yes tried that smtps and 587 which I already posted here, different error
> > message but still no luck.
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > [image:
> > Skype] MikeOliverAZ
> >
> >
> >
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > Virus-free.
> > www.avast.com
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > On Mon, May 24, 2021 at 1:23 PM William Juwono <william.juwono@izeno.com
> >
> > wrote:
> >
> > > try to use smtps not smtp.
> > >
> > >   <to id="_to1" uri="smtp*s*:smtp.gmail.com:465
> > > <http://smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This>
> > >
> > > On Mon, May 24, 2021 at 12:13 PM Mike Oliver <
> > > MikeOliverAZ@open4businessonline.com> wrote:
> > >
> > > > William,
> > > >
> > > > Thanks, the error shifted.
> > > >
> > > > Here is my current context...
> > > >
> > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > http://camel.apache.org/schema/blueprint">
> > > >         <route id="_deadletterchannelroute1">
> > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > >             <log id="_log1" message="Dead Letter Channel body =
> > ${body},
> > > > headers = ${headers}"/>
> > > >             <to id="_to1" uri="smtp:
> > > > smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This is a
> > test
> > > of
> > > > smtps camel fuse karaf&amp;to=mikeoliver@somedomain.com
> > > > &amp;password=passwrod&amp;username=mikeoliver@gmail.com"/>
> > > >         </route>
> > > >     </camelContext>
> > > >
> > > > The error changed, so that's at least showing that my code deployed
> > > > changed.
> > > >
> > > > j0avax.mail.MessagingException: Exception reading response;
> > > >   nested exception is:
> > > >         java.net.SocketTimeoutException: Read timed out
> > > >         at
> > > >
> > >
> >
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
> > > >         at
> > > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
> > > >         at
> > > >
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > >         at javax.mail.Service.connect(Service.java:366)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > >         at
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > > >         at
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > > >         at
> > > >
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > > >         at
> > > >
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > > >         at
> > > >
> > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > > >         at java.lang.Thread.run(Thread.java:748)
> > > >
> > > >
> > > >
> > > >
> > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > US Toll free: 1-800-985-4766 **NEW*
> > > > http://www.o4bo.com
> > > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> > nito
> > > > [image: Facebook]
> > > > <
> http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > [image:
> > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> AngelList]
> > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> > Google
> > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > Contact me: [image: Google Talk]
> mikeoliveraz@open4businessonline.com
> > > > [image:
> > > > Skype] MikeOliverAZ
> > > >
> > > >
> > > >
> > > > <
> > > >
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > > >
> > > > Virus-free.
> > > > www.avast.com
> > > > <
> > > >
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > > >
> > > > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > > >
> > > > On Mon, May 24, 2021 at 9:34 AM William Juwono <
> > william.juwono@izeno.com
> > > >
> > > > wrote:
> > > >
> > > > > Try to use port 465? I'm using this on java dsl and it works:
> > > > > smtps://smtp.gmail.com:465?username=xxxxx
> > > > >
> > > > > On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
> > > > > MikeOliverAZ@open4businessonline.com> wrote:
> > > > >
> > > > > > Still trying.  This is the latest context. This is essentially
> the
> > > same
> > > > > as
> > > > > > the javainuse.com example.
> > > > > >
> > > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > > http://camel.apache.org/schema/blueprint">
> > > > > >         <route id="_deadletterchannelroute1">
> > > > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > > >                 <constant>"Error Message"</constant>
> > > > > >             </setHeader>
> > > > > >             <setBody id="_setBody1">
> > > > > >                 <constant>"Helo World, Error Body!"</constant>
> > > > > >             </setBody>
> > > > > >             <log id="_log1" message="Dead Letter Channel body =
> > > > ${body},
> > > > > > headers = ${headers}"/>
> > > > > >             <to id="_to1" uri="smtps:
> > > > > > smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This
> is a
> > > > test
> > > > > of
> > > > > > smtps camel fuse karaf&amp;to=littleboss@gmail.com
> > > > > > &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
> > > > > >         </route>
> > > > > >     </camelContext>
> > > > > >
> > > > > > Testing gave the following stack trace.
> > > > > >
> > > > > > javax.mail.MessagingException: Could not connect to SMTP host:
> > > > > > smtp.gmail.com, port: 587;
> > > > > >   nested exception is:
> > > > > >         javax.net.ssl.SSLException: Connection reset
> > > > > >         at
> > > > > >
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > > >         at
> > > > > >
> > > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > > >         at
> > > > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > > > >         at
> > > > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > > >         at
> > > > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > > > >         at
> > > > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > > > > >         at
> > > > > >
> > > >
> > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > > > > >         at java.lang.Thread.run(Thread.java:748)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > > http://www.o4bo.com
> > > > > > Mas marunong akong umunawa ng salitang tagalog kaysa
> magkapagsalita
> > > > nito
> > > > > > [image: Facebook]
> > > > > > <
> > > http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > > > [image:
> > > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > > AngelList]
> > > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw>
> [image:
> > > > Google
> > > > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > > > Contact me: [image: Google Talk]
> > > mikeoliveraz@open4businessonline.com
> > > > > > [image:
> > > > > > Skype] MikeOliverAZ
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <
> claus.ibsen@gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > > Hi
> > > > > > >
> > > > > > > If you google a bit you can find other blogs, and you tube
> videos
> > > on
> > > > > > > how others have made Camel send emails to gmail (requires to
> > > > configure
> > > > > > > gmail to allow SMTP).
> > > > > > >
> > > > > > > Such as
> > > > > > > https://www.youtube.com/watch?v=oauidgmHHoc
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > > > > > > <Mi...@open4businessonline.com> wrote:
> > > > > > > >
> > > > > > > > I am trying every possibility.
> > > > > > > >
> > > > > > > > I need to send email through gmail from my camel integration.
> > > > > > > >
> > > > > > > > I have tried going to smtp.gmail.com but cannot make it
> > work.  I
> > > > > tried
> > > > > > > the
> > > > > > > > camel-smtp and smtps components and even the
> camel-google-mail
> > > > > > component.
> > > > > > > >
> > > > > > > > Giving up on going direct I chose an smtp relay service
> > > SendInBlue.
> > > > > > > >
> > > > > > > > Here is my context.
> > > > > > > >
> > > > > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > > > > http://camel.apache.org/schema/blueprint">
> > > > > > > >         <route id="_deadletterchannelroute1">
> > > > > > > >             <from id="_from1"
> > uri="direct-vm:deadletterchannel"/>
> > > > > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > > > > >                 <constant>""Error Message</constant>
> > > > > > > >             </setHeader>
> > > > > > > >             <setBody id="_setBody1">
> > > > > > > >                 <constant>""Helo World, Error
> Body!</constant>
> > > > > > > >             </setBody>
> > > > > > > >             <log id="_log1" message="Dead Letter Channel
> body =
> > > > > > ${body},
> > > > > > > > headers = ${headers}"/>
> > > > > > > >             <to id="_to1" uri="smtps://
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > > > > > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > > > > > > &amp;password=blablabla&amp;username=
> > > > > > > mikeoliveraz@open4businessonline.com"/>
> > > > > > > >         </route>
> > > > > > > >     </camelContext>
> > > > > > > >
> > > > > > > > Testing gives me the following error stack.
> > > > > > > >
> > > > > > > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > > > > > > smtp-relay.sendinblue.com, port: 587;
> > > > > > > >   nested exception is:
> > > > > > > >         javax.net.ssl.SSLException: Connection reset
> > > > > > > >         at
> > > > > > >
> > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > > > > >         at
> > > > > > >
> > > >
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > > > > http://www.o4bo.com
> > > > > > > > Mas marunong akong umunawa ng salitang tagalog kaysa
> > > magkapagsalita
> > > > > > nito
> > > > > > > > [image: Facebook]
> > > > > > > > <
> > > > >
> http://www.facebook.com/pages/Open-4-Business-Online/147285608707176
> > >
> > > > > > > [image:
> > > > > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > > > > AngelList]
> > > > > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image:
> > YouTube]
> > > > > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw>
> > > [image:
> > > > > > Google
> > > > > > > > Plus Page] <
> > https://plus.google.com/113688478700619104336/posts>
> > > > > > > > Contact me: [image: Google Talk]
> > > > > mikeoliveraz@open4businessonline.com
> > > > > > > [image:
> > > > > > > > Skype] MikeOliverAZ
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Claus Ibsen
> > > > > > > -----------------
> > > > > > > http://davsclaus.com @davsclaus
> > > > > > > Camel in Action 2: https://www.manning.com/ibsen2
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > > <
> > > >
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > > >
> > > > Virus-free.
> > > > www.avast.com
> > > > <
> > > >
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > > >
> > > > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > > >
> > >
> >
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > Virus-free.
> > www.avast.com
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
>

Re: SMTP Problems

Posted by William Juwono <wi...@izeno.com>.
Ok. because I saw your codes was using smtp and port 465

465 is ssl, 587 is tls, both are smtps
So you may need to check your java versions and the certs it supports

On Mon, May 24, 2021 at 3:23 PM Mike Oliver <
MikeOliverAZ@open4businessonline.com> wrote:

> William,
>
> Yes tried that smtps and 587 which I already posted here, different error
> message but still no luck.
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> Skype] MikeOliverAZ
>
>
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virus-free.
> www.avast.com
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Mon, May 24, 2021 at 1:23 PM William Juwono <wi...@izeno.com>
> wrote:
>
> > try to use smtps not smtp.
> >
> >   <to id="_to1" uri="smtp*s*:smtp.gmail.com:465
> > <http://smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This>
> >
> > On Mon, May 24, 2021 at 12:13 PM Mike Oliver <
> > MikeOliverAZ@open4businessonline.com> wrote:
> >
> > > William,
> > >
> > > Thanks, the error shifted.
> > >
> > > Here is my current context...
> > >
> > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > http://camel.apache.org/schema/blueprint">
> > >         <route id="_deadletterchannelroute1">
> > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > >             <log id="_log1" message="Dead Letter Channel body =
> ${body},
> > > headers = ${headers}"/>
> > >             <to id="_to1" uri="smtp:
> > > smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This is a
> test
> > of
> > > smtps camel fuse karaf&amp;to=mikeoliver@somedomain.com
> > > &amp;password=passwrod&amp;username=mikeoliver@gmail.com"/>
> > >         </route>
> > >     </camelContext>
> > >
> > > The error changed, so that's at least showing that my code deployed
> > > changed.
> > >
> > > j0avax.mail.MessagingException: Exception reading response;
> > >   nested exception is:
> > >         java.net.SocketTimeoutException: Read timed out
> > >         at
> > >
> >
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
> > >         at
> > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
> > >         at
> > > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > >         at javax.mail.Service.connect(Service.java:366)
> > >         at
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > >         at
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > >         at
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > >         at
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > >         at
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > >         at
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > >         at
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > >         at
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > >         at
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > >         at
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > >         at
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > >         at
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > >         at
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > >         at
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > >         at
> > >
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > >         at java.lang.Thread.run(Thread.java:748)
> > >
> > >
> > >
> > >
> > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > US Toll free: 1-800-985-4766 **NEW*
> > > http://www.o4bo.com
> > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> nito
> > > [image: Facebook]
> > > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > [image:
> > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > <http://blog.open4businessonline.com/> [image: eBay]
> > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> Google
> > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > > [image:
> > > Skype] MikeOliverAZ
> > >
> > >
> > >
> > > <
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > >
> > > Virus-free.
> > > www.avast.com
> > > <
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > >
> > > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >
> > > On Mon, May 24, 2021 at 9:34 AM William Juwono <
> william.juwono@izeno.com
> > >
> > > wrote:
> > >
> > > > Try to use port 465? I'm using this on java dsl and it works:
> > > > smtps://smtp.gmail.com:465?username=xxxxx
> > > >
> > > > On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
> > > > MikeOliverAZ@open4businessonline.com> wrote:
> > > >
> > > > > Still trying.  This is the latest context. This is essentially the
> > same
> > > > as
> > > > > the javainuse.com example.
> > > > >
> > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > http://camel.apache.org/schema/blueprint">
> > > > >         <route id="_deadletterchannelroute1">
> > > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > >                 <constant>"Error Message"</constant>
> > > > >             </setHeader>
> > > > >             <setBody id="_setBody1">
> > > > >                 <constant>"Helo World, Error Body!"</constant>
> > > > >             </setBody>
> > > > >             <log id="_log1" message="Dead Letter Channel body =
> > > ${body},
> > > > > headers = ${headers}"/>
> > > > >             <to id="_to1" uri="smtps:
> > > > > smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a
> > > test
> > > > of
> > > > > smtps camel fuse karaf&amp;to=littleboss@gmail.com
> > > > > &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
> > > > >         </route>
> > > > >     </camelContext>
> > > > >
> > > > > Testing gave the following stack trace.
> > > > >
> > > > > javax.mail.MessagingException: Could not connect to SMTP host:
> > > > > smtp.gmail.com, port: 587;
> > > > >   nested exception is:
> > > > >         javax.net.ssl.SSLException: Connection reset
> > > > >         at
> > > > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > >         at
> > > > >
> > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > >         at
> > > > >
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > >         at
> > > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > > >         at
> > > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > > > >         at
> > > > >
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > >         at
> > > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > > >         at
> > > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > > > >         at
> > > > >
> > > >
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > > > >         at
> > > > >
> > >
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > > > >         at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > http://www.o4bo.com
> > > > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> > > nito
> > > > > [image: Facebook]
> > > > > <
> > http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > > [image:
> > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > AngelList]
> > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> > > Google
> > > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > > Contact me: [image: Google Talk]
> > mikeoliveraz@open4businessonline.com
> > > > > [image:
> > > > > Skype] MikeOliverAZ
> > > > >
> > > > >
> > > > >
> > > > > On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <claus.ibsen@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > If you google a bit you can find other blogs, and you tube videos
> > on
> > > > > > how others have made Camel send emails to gmail (requires to
> > > configure
> > > > > > gmail to allow SMTP).
> > > > > >
> > > > > > Such as
> > > > > > https://www.youtube.com/watch?v=oauidgmHHoc
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > > > > > <Mi...@open4businessonline.com> wrote:
> > > > > > >
> > > > > > > I am trying every possibility.
> > > > > > >
> > > > > > > I need to send email through gmail from my camel integration.
> > > > > > >
> > > > > > > I have tried going to smtp.gmail.com but cannot make it
> work.  I
> > > > tried
> > > > > > the
> > > > > > > camel-smtp and smtps components and even the camel-google-mail
> > > > > component.
> > > > > > >
> > > > > > > Giving up on going direct I chose an smtp relay service
> > SendInBlue.
> > > > > > >
> > > > > > > Here is my context.
> > > > > > >
> > > > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > > > http://camel.apache.org/schema/blueprint">
> > > > > > >         <route id="_deadletterchannelroute1">
> > > > > > >             <from id="_from1"
> uri="direct-vm:deadletterchannel"/>
> > > > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > > > >                 <constant>""Error Message</constant>
> > > > > > >             </setHeader>
> > > > > > >             <setBody id="_setBody1">
> > > > > > >                 <constant>""Helo World, Error Body!</constant>
> > > > > > >             </setBody>
> > > > > > >             <log id="_log1" message="Dead Letter Channel body =
> > > > > ${body},
> > > > > > > headers = ${headers}"/>
> > > > > > >             <to id="_to1" uri="smtps://
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > > > > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > > > > > &amp;password=blablabla&amp;username=
> > > > > > mikeoliveraz@open4businessonline.com"/>
> > > > > > >         </route>
> > > > > > >     </camelContext>
> > > > > > >
> > > > > > > Testing gives me the following error stack.
> > > > > > >
> > > > > > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > > > > > smtp-relay.sendinblue.com, port: 587;
> > > > > > >   nested exception is:
> > > > > > >         javax.net.ssl.SSLException: Connection reset
> > > > > > >         at
> > > > > >
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > > > >         at
> > > > > >
> > > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > > > >         at
> > > > > >
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > > > http://www.o4bo.com
> > > > > > > Mas marunong akong umunawa ng salitang tagalog kaysa
> > magkapagsalita
> > > > > nito
> > > > > > > [image: Facebook]
> > > > > > > <
> > > > http://www.facebook.com/pages/Open-4-Business-Online/147285608707176
> >
> > > > > > [image:
> > > > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > > > AngelList]
> > > > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image:
> YouTube]
> > > > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw>
> > [image:
> > > > > Google
> > > > > > > Plus Page] <
> https://plus.google.com/113688478700619104336/posts>
> > > > > > > Contact me: [image: Google Talk]
> > > > mikeoliveraz@open4businessonline.com
> > > > > > [image:
> > > > > > > Skype] MikeOliverAZ
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Claus Ibsen
> > > > > > -----------------
> > > > > > http://davsclaus.com @davsclaus
> > > > > > Camel in Action 2: https://www.manning.com/ibsen2
> > > > > >
> > > > >
> > > >
> > >
> > > <
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > >
> > > Virus-free.
> > > www.avast.com
> > > <
> > >
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > > >
> > > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >
> >
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virus-free.
> www.avast.com
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

Re: SMTP Problems

Posted by Mike Oliver <Mi...@open4businessonline.com>.
William,

Yes tried that smtps and 587 which I already posted here, different error
message but still no luck.




*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ



<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, May 24, 2021 at 1:23 PM William Juwono <wi...@izeno.com>
wrote:

> try to use smtps not smtp.
>
>   <to id="_to1" uri="smtp*s*:smtp.gmail.com:465
> <http://smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This>
>
> On Mon, May 24, 2021 at 12:13 PM Mike Oliver <
> MikeOliverAZ@open4businessonline.com> wrote:
>
> > William,
> >
> > Thanks, the error shifted.
> >
> > Here is my current context...
> >
> > <camelContext id="_deadletterchannelcontext1" xmlns="
> > http://camel.apache.org/schema/blueprint">
> >         <route id="_deadletterchannelroute1">
> >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> >             <log id="_log1" message="Dead Letter Channel body = ${body},
> > headers = ${headers}"/>
> >             <to id="_to1" uri="smtp:
> > smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This is a test
> of
> > smtps camel fuse karaf&amp;to=mikeoliver@somedomain.com
> > &amp;password=passwrod&amp;username=mikeoliver@gmail.com"/>
> >         </route>
> >     </camelContext>
> >
> > The error changed, so that's at least showing that my code deployed
> > changed.
> >
> > j0avax.mail.MessagingException: Exception reading response;
> >   nested exception is:
> >         java.net.SocketTimeoutException: Read timed out
> >         at
> >
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
> >         at
> > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
> >         at
> > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> >         at javax.mail.Service.connect(Service.java:366)
> >         at
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> >         at
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> >         at
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> >         at
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> >         at
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> >         at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> >         at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> >         at
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> >         at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> >         at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> >         at
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> >         at
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> >         at
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> >         at
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> >         at
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> >         at
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> >         at
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> >         at
> > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> >         at java.lang.Thread.run(Thread.java:748)
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > [image:
> > Skype] MikeOliverAZ
> >
> >
> >
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > Virus-free.
> > www.avast.com
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > On Mon, May 24, 2021 at 9:34 AM William Juwono <william.juwono@izeno.com
> >
> > wrote:
> >
> > > Try to use port 465? I'm using this on java dsl and it works:
> > > smtps://smtp.gmail.com:465?username=xxxxx
> > >
> > > On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
> > > MikeOliverAZ@open4businessonline.com> wrote:
> > >
> > > > Still trying.  This is the latest context. This is essentially the
> same
> > > as
> > > > the javainuse.com example.
> > > >
> > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > http://camel.apache.org/schema/blueprint">
> > > >         <route id="_deadletterchannelroute1">
> > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > >             <setHeader headerName="subject" id="_setHeader1">
> > > >                 <constant>"Error Message"</constant>
> > > >             </setHeader>
> > > >             <setBody id="_setBody1">
> > > >                 <constant>"Helo World, Error Body!"</constant>
> > > >             </setBody>
> > > >             <log id="_log1" message="Dead Letter Channel body =
> > ${body},
> > > > headers = ${headers}"/>
> > > >             <to id="_to1" uri="smtps:
> > > > smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a
> > test
> > > of
> > > > smtps camel fuse karaf&amp;to=littleboss@gmail.com
> > > > &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
> > > >         </route>
> > > >     </camelContext>
> > > >
> > > > Testing gave the following stack trace.
> > > >
> > > > javax.mail.MessagingException: Could not connect to SMTP host:
> > > > smtp.gmail.com, port: 587;
> > > >   nested exception is:
> > > >         javax.net.ssl.SSLException: Connection reset
> > > >         at
> > > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > >         at
> > > >
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > >         at javax.mail.Service.connect(Service.java:366)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > >         at
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > > >         at
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > > >         at
> > org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > >         at
> > > >
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > > >         at
> > > >
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > > >         at
> > > >
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > > >         at
> > > >
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > > >         at
> > > >
> > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > > >         at java.lang.Thread.run(Thread.java:748)
> > > >
> > > >
> > > >
> > > >
> > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > US Toll free: 1-800-985-4766 **NEW*
> > > > http://www.o4bo.com
> > > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> > nito
> > > > [image: Facebook]
> > > > <
> http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > [image:
> > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> AngelList]
> > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> > Google
> > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > Contact me: [image: Google Talk]
> mikeoliveraz@open4businessonline.com
> > > > [image:
> > > > Skype] MikeOliverAZ
> > > >
> > > >
> > > >
> > > > On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <cl...@gmail.com>
> > > wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > If you google a bit you can find other blogs, and you tube videos
> on
> > > > > how others have made Camel send emails to gmail (requires to
> > configure
> > > > > gmail to allow SMTP).
> > > > >
> > > > > Such as
> > > > > https://www.youtube.com/watch?v=oauidgmHHoc
> > > > >
> > > > >
> > > > >
> > > > > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > > > > <Mi...@open4businessonline.com> wrote:
> > > > > >
> > > > > > I am trying every possibility.
> > > > > >
> > > > > > I need to send email through gmail from my camel integration.
> > > > > >
> > > > > > I have tried going to smtp.gmail.com but cannot make it work.  I
> > > tried
> > > > > the
> > > > > > camel-smtp and smtps components and even the camel-google-mail
> > > > component.
> > > > > >
> > > > > > Giving up on going direct I chose an smtp relay service
> SendInBlue.
> > > > > >
> > > > > > Here is my context.
> > > > > >
> > > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > > http://camel.apache.org/schema/blueprint">
> > > > > >         <route id="_deadletterchannelroute1">
> > > > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > > >                 <constant>""Error Message</constant>
> > > > > >             </setHeader>
> > > > > >             <setBody id="_setBody1">
> > > > > >                 <constant>""Helo World, Error Body!</constant>
> > > > > >             </setBody>
> > > > > >             <log id="_log1" message="Dead Letter Channel body =
> > > > ${body},
> > > > > > headers = ${headers}"/>
> > > > > >             <to id="_to1" uri="smtps://
> > > > > >
> > > > >
> > > >
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > > > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > > > > &amp;password=blablabla&amp;username=
> > > > > mikeoliveraz@open4businessonline.com"/>
> > > > > >         </route>
> > > > > >     </camelContext>
> > > > > >
> > > > > > Testing gives me the following error stack.
> > > > > >
> > > > > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > > > > smtp-relay.sendinblue.com, port: 587;
> > > > > >   nested exception is:
> > > > > >         javax.net.ssl.SSLException: Connection reset
> > > > > >         at
> > > > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > > >         at
> > > > >
> > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > > >         at
> > > > >
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > > http://www.o4bo.com
> > > > > > Mas marunong akong umunawa ng salitang tagalog kaysa
> magkapagsalita
> > > > nito
> > > > > > [image: Facebook]
> > > > > > <
> > > http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > > [image:
> > > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > > AngelList]
> > > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw>
> [image:
> > > > Google
> > > > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > > > Contact me: [image: Google Talk]
> > > mikeoliveraz@open4businessonline.com
> > > > > [image:
> > > > > > Skype] MikeOliverAZ
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Claus Ibsen
> > > > > -----------------
> > > > > http://davsclaus.com @davsclaus
> > > > > Camel in Action 2: https://www.manning.com/ibsen2
> > > > >
> > > >
> > >
> >
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > Virus-free.
> > www.avast.com
> > <
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Re: SMTP Problems

Posted by William Juwono <wi...@izeno.com>.
try to use smtps not smtp.

  <to id="_to1" uri="smtp*s*:smtp.gmail.com:465
<http://smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This>

On Mon, May 24, 2021 at 12:13 PM Mike Oliver <
MikeOliverAZ@open4businessonline.com> wrote:

> William,
>
> Thanks, the error shifted.
>
> Here is my current context...
>
> <camelContext id="_deadletterchannelcontext1" xmlns="
> http://camel.apache.org/schema/blueprint">
>         <route id="_deadletterchannelroute1">
>             <from id="_from1" uri="direct-vm:deadletterchannel"/>
>             <log id="_log1" message="Dead Letter Channel body = ${body},
> headers = ${headers}"/>
>             <to id="_to1" uri="smtp:
> smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This is a test of
> smtps camel fuse karaf&amp;to=mikeoliver@somedomain.com
> &amp;password=passwrod&amp;username=mikeoliver@gmail.com"/>
>         </route>
>     </camelContext>
>
> The error changed, so that's at least showing that my code deployed
> changed.
>
> j0avax.mail.MessagingException: Exception reading response;
>   nested exception is:
>         java.net.SocketTimeoutException: Read timed out
>         at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
>         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
>         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
>         at javax.mail.Service.connect(Service.java:366)
>         at
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
>         at
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
>         at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>         at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
>         at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
>         at
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
>         at
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
>         at
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
>         at
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
>         at
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
>         at
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
>         at
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
>         at
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
>         at
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
>         at
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
>         at
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>         at java.lang.Thread.run(Thread.java:748)
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> Skype] MikeOliverAZ
>
>
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virus-free.
> www.avast.com
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Mon, May 24, 2021 at 9:34 AM William Juwono <wi...@izeno.com>
> wrote:
>
> > Try to use port 465? I'm using this on java dsl and it works:
> > smtps://smtp.gmail.com:465?username=xxxxx
> >
> > On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
> > MikeOliverAZ@open4businessonline.com> wrote:
> >
> > > Still trying.  This is the latest context. This is essentially the same
> > as
> > > the javainuse.com example.
> > >
> > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > http://camel.apache.org/schema/blueprint">
> > >         <route id="_deadletterchannelroute1">
> > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > >             <setHeader headerName="subject" id="_setHeader1">
> > >                 <constant>"Error Message"</constant>
> > >             </setHeader>
> > >             <setBody id="_setBody1">
> > >                 <constant>"Helo World, Error Body!"</constant>
> > >             </setBody>
> > >             <log id="_log1" message="Dead Letter Channel body =
> ${body},
> > > headers = ${headers}"/>
> > >             <to id="_to1" uri="smtps:
> > > smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a
> test
> > of
> > > smtps camel fuse karaf&amp;to=littleboss@gmail.com
> > > &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
> > >         </route>
> > >     </camelContext>
> > >
> > > Testing gave the following stack trace.
> > >
> > > javax.mail.MessagingException: Could not connect to SMTP host:
> > > smtp.gmail.com, port: 587;
> > >   nested exception is:
> > >         javax.net.ssl.SSLException: Connection reset
> > >         at
> > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > >         at
> > > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > >         at javax.mail.Service.connect(Service.java:366)
> > >         at
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > >         at
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > >         at
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > >         at
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > >         at
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > >         at
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > >         at
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> > >
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> > >         at
> > >
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> > >         at
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> > >         at
> > >
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> > >         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> > >         at
> > >
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> > >         at
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > >         at
> > >
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> > >         at
> > >
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> > >         at
> > >
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> > >         at
> > >
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> > >         at
> > >
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> > >         at
> > >
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> > >         at java.lang.Thread.run(Thread.java:748)
> > >
> > >
> > >
> > >
> > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > US Toll free: 1-800-985-4766 **NEW*
> > > http://www.o4bo.com
> > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> nito
> > > [image: Facebook]
> > > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > [image:
> > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > <http://blog.open4businessonline.com/> [image: eBay]
> > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> Google
> > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > > [image:
> > > Skype] MikeOliverAZ
> > >
> > >
> > >
> > > On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <cl...@gmail.com>
> > wrote:
> > >
> > > > Hi
> > > >
> > > > If you google a bit you can find other blogs, and you tube videos on
> > > > how others have made Camel send emails to gmail (requires to
> configure
> > > > gmail to allow SMTP).
> > > >
> > > > Such as
> > > > https://www.youtube.com/watch?v=oauidgmHHoc
> > > >
> > > >
> > > >
> > > > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > > > <Mi...@open4businessonline.com> wrote:
> > > > >
> > > > > I am trying every possibility.
> > > > >
> > > > > I need to send email through gmail from my camel integration.
> > > > >
> > > > > I have tried going to smtp.gmail.com but cannot make it work.  I
> > tried
> > > > the
> > > > > camel-smtp and smtps components and even the camel-google-mail
> > > component.
> > > > >
> > > > > Giving up on going direct I chose an smtp relay service SendInBlue.
> > > > >
> > > > > Here is my context.
> > > > >
> > > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > > http://camel.apache.org/schema/blueprint">
> > > > >         <route id="_deadletterchannelroute1">
> > > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > > >             <setHeader headerName="subject" id="_setHeader1">
> > > > >                 <constant>""Error Message</constant>
> > > > >             </setHeader>
> > > > >             <setBody id="_setBody1">
> > > > >                 <constant>""Helo World, Error Body!</constant>
> > > > >             </setBody>
> > > > >             <log id="_log1" message="Dead Letter Channel body =
> > > ${body},
> > > > > headers = ${headers}"/>
> > > > >             <to id="_to1" uri="smtps://
> > > > >
> > > >
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > > > &amp;password=blablabla&amp;username=
> > > > mikeoliveraz@open4businessonline.com"/>
> > > > >         </route>
> > > > >     </camelContext>
> > > > >
> > > > > Testing gives me the following error stack.
> > > > >
> > > > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > > > smtp-relay.sendinblue.com, port: 587;
> > > > >   nested exception is:
> > > > >         javax.net.ssl.SSLException: Connection reset
> > > > >         at
> > > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > > >         at
> > > >
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > > >         at javax.mail.Service.connect(Service.java:366)
> > > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > > >         at
> > > >
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > > >         at
> > > >
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > > >         at
> > > >
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > > >         at
> > > >
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > > >         at
> > > >
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > > US Toll free: 1-800-985-4766 **NEW*
> > > > > http://www.o4bo.com
> > > > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> > > nito
> > > > > [image: Facebook]
> > > > > <
> > http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > > [image:
> > > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> > AngelList]
> > > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> > > Google
> > > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > > Contact me: [image: Google Talk]
> > mikeoliveraz@open4businessonline.com
> > > > [image:
> > > > > Skype] MikeOliverAZ
> > > >
> > > >
> > > >
> > > > --
> > > > Claus Ibsen
> > > > -----------------
> > > > http://davsclaus.com @davsclaus
> > > > Camel in Action 2: https://www.manning.com/ibsen2
> > > >
> > >
> >
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virus-free.
> www.avast.com
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

Re: SMTP Problems

Posted by Mike Oliver <Mi...@open4businessonline.com>.
William,

Thanks, the error shifted.

Here is my current context...

<camelContext id="_deadletterchannelcontext1" xmlns="
http://camel.apache.org/schema/blueprint">
        <route id="_deadletterchannelroute1">
            <from id="_from1" uri="direct-vm:deadletterchannel"/>
            <log id="_log1" message="Dead Letter Channel body = ${body},
headers = ${headers}"/>
            <to id="_to1" uri="smtp:
smtp.gmail.com:465?from=mikeoliver@gmail.com&amp;subject=This is a test of
smtps camel fuse karaf&amp;to=mikeoliver@somedomain.com
&amp;password=passwrod&amp;username=mikeoliver@gmail.com"/>
        </route>
    </camelContext>

The error changed, so that's at least showing that my code deployed changed.

j0avax.mail.MessagingException: Exception reading response;
  nested exception is:
	java.net.SocketTimeoutException: Read timed out
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
	at javax.mail.Service.connect(Service.java:366)
	at org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
	at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
	at org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
	at org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
	at org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
	at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
	at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.lang.Thread.run(Thread.java:748)




*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ



<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, May 24, 2021 at 9:34 AM William Juwono <wi...@izeno.com>
wrote:

> Try to use port 465? I'm using this on java dsl and it works:
> smtps://smtp.gmail.com:465?username=xxxxx
>
> On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
> MikeOliverAZ@open4businessonline.com> wrote:
>
> > Still trying.  This is the latest context. This is essentially the same
> as
> > the javainuse.com example.
> >
> > <camelContext id="_deadletterchannelcontext1" xmlns="
> > http://camel.apache.org/schema/blueprint">
> >         <route id="_deadletterchannelroute1">
> >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> >             <setHeader headerName="subject" id="_setHeader1">
> >                 <constant>"Error Message"</constant>
> >             </setHeader>
> >             <setBody id="_setBody1">
> >                 <constant>"Helo World, Error Body!"</constant>
> >             </setBody>
> >             <log id="_log1" message="Dead Letter Channel body = ${body},
> > headers = ${headers}"/>
> >             <to id="_to1" uri="smtps:
> > smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a test
> of
> > smtps camel fuse karaf&amp;to=littleboss@gmail.com
> > &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
> >         </route>
> >     </camelContext>
> >
> > Testing gave the following stack trace.
> >
> > javax.mail.MessagingException: Could not connect to SMTP host:
> > smtp.gmail.com, port: 587;
> >   nested exception is:
> >         javax.net.ssl.SSLException: Connection reset
> >         at
> > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> >         at
> > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> >         at javax.mail.Service.connect(Service.java:366)
> >         at
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> >         at
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> >         at
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> >         at
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> >         at
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> >         at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> >         at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at
> >
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
> >         at
> >
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
> >         at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
> >         at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> >         at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
> >         at
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
> >         at
> >
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
> >         at
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
> >         at
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> >         at
> >
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
> >         at
> >
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> >         at
> >
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> >         at
> >
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> >         at
> >
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> >         at
> > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> >         at java.lang.Thread.run(Thread.java:748)
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > [image:
> > Skype] MikeOliverAZ
> >
> >
> >
> > On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <cl...@gmail.com>
> wrote:
> >
> > > Hi
> > >
> > > If you google a bit you can find other blogs, and you tube videos on
> > > how others have made Camel send emails to gmail (requires to configure
> > > gmail to allow SMTP).
> > >
> > > Such as
> > > https://www.youtube.com/watch?v=oauidgmHHoc
> > >
> > >
> > >
> > > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > > <Mi...@open4businessonline.com> wrote:
> > > >
> > > > I am trying every possibility.
> > > >
> > > > I need to send email through gmail from my camel integration.
> > > >
> > > > I have tried going to smtp.gmail.com but cannot make it work.  I
> tried
> > > the
> > > > camel-smtp and smtps components and even the camel-google-mail
> > component.
> > > >
> > > > Giving up on going direct I chose an smtp relay service SendInBlue.
> > > >
> > > > Here is my context.
> > > >
> > > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > > http://camel.apache.org/schema/blueprint">
> > > >         <route id="_deadletterchannelroute1">
> > > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > > >             <setHeader headerName="subject" id="_setHeader1">
> > > >                 <constant>""Error Message</constant>
> > > >             </setHeader>
> > > >             <setBody id="_setBody1">
> > > >                 <constant>""Helo World, Error Body!</constant>
> > > >             </setBody>
> > > >             <log id="_log1" message="Dead Letter Channel body =
> > ${body},
> > > > headers = ${headers}"/>
> > > >             <to id="_to1" uri="smtps://
> > > >
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > > &amp;password=blablabla&amp;username=
> > > mikeoliveraz@open4businessonline.com"/>
> > > >         </route>
> > > >     </camelContext>
> > > >
> > > > Testing gives me the following error stack.
> > > >
> > > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > > smtp-relay.sendinblue.com, port: 587;
> > > >   nested exception is:
> > > >         javax.net.ssl.SSLException: Connection reset
> > > >         at
> > > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > > >         at
> > > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > > >         at javax.mail.Service.connect(Service.java:366)
> > > >         at
> > >
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > > >         at
> > >
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > > >         at
> > >
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > > >         at
> > >
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > > >         at
> > >
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > > >         at
> > >
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > > US Toll free: 1-800-985-4766 **NEW*
> > > > http://www.o4bo.com
> > > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> > nito
> > > > [image: Facebook]
> > > > <
> http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > > [image:
> > > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image:
> AngelList]
> > > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > > <http://blog.open4businessonline.com/> [image: eBay]
> > > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> > Google
> > > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > > Contact me: [image: Google Talk]
> mikeoliveraz@open4businessonline.com
> > > [image:
> > > > Skype] MikeOliverAZ
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > http://davsclaus.com @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> > >
> >
>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_2363070138118966889_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Re: SMTP Problems

Posted by William Juwono <wi...@izeno.com>.
Try to use port 465? I'm using this on java dsl and it works:
smtps://smtp.gmail.com:465?username=xxxxx

On Sun, May 23, 2021 at 9:44 AM Mike Oliver <
MikeOliverAZ@open4businessonline.com> wrote:

> Still trying.  This is the latest context. This is essentially the same as
> the javainuse.com example.
>
> <camelContext id="_deadletterchannelcontext1" xmlns="
> http://camel.apache.org/schema/blueprint">
>         <route id="_deadletterchannelroute1">
>             <from id="_from1" uri="direct-vm:deadletterchannel"/>
>             <setHeader headerName="subject" id="_setHeader1">
>                 <constant>"Error Message"</constant>
>             </setHeader>
>             <setBody id="_setBody1">
>                 <constant>"Helo World, Error Body!"</constant>
>             </setBody>
>             <log id="_log1" message="Dead Letter Channel body = ${body},
> headers = ${headers}"/>
>             <to id="_to1" uri="smtps:
> smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a test of
> smtps camel fuse karaf&amp;to=littleboss@gmail.com
> &amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
>         </route>
>     </camelContext>
>
> Testing gave the following stack trace.
>
> javax.mail.MessagingException: Could not connect to SMTP host:
> smtp.gmail.com, port: 587;
>   nested exception is:
>         javax.net.ssl.SSLException: Connection reset
>         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
>         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
>         at javax.mail.Service.connect(Service.java:366)
>         at
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
>         at
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
>         at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>         at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
>         at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at
> org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
>         at
> org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>         at
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
>         at
> org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
>         at
> org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
>         at
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
>         at
> org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
>         at
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
>         at
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
>         at
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
>         at
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
>         at
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
>         at
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>         at java.lang.Thread.run(Thread.java:748)
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> Skype] MikeOliverAZ
>
>
>
> On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <cl...@gmail.com> wrote:
>
> > Hi
> >
> > If you google a bit you can find other blogs, and you tube videos on
> > how others have made Camel send emails to gmail (requires to configure
> > gmail to allow SMTP).
> >
> > Such as
> > https://www.youtube.com/watch?v=oauidgmHHoc
> >
> >
> >
> > On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> > <Mi...@open4businessonline.com> wrote:
> > >
> > > I am trying every possibility.
> > >
> > > I need to send email through gmail from my camel integration.
> > >
> > > I have tried going to smtp.gmail.com but cannot make it work.  I tried
> > the
> > > camel-smtp and smtps components and even the camel-google-mail
> component.
> > >
> > > Giving up on going direct I chose an smtp relay service SendInBlue.
> > >
> > > Here is my context.
> > >
> > > <camelContext id="_deadletterchannelcontext1" xmlns="
> > > http://camel.apache.org/schema/blueprint">
> > >         <route id="_deadletterchannelroute1">
> > >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> > >             <setHeader headerName="subject" id="_setHeader1">
> > >                 <constant>""Error Message</constant>
> > >             </setHeader>
> > >             <setBody id="_setBody1">
> > >                 <constant>""Helo World, Error Body!</constant>
> > >             </setBody>
> > >             <log id="_log1" message="Dead Letter Channel body =
> ${body},
> > > headers = ${headers}"/>
> > >             <to id="_to1" uri="smtps://
> > >
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > > &amp;password=blablabla&amp;username=
> > mikeoliveraz@open4businessonline.com"/>
> > >         </route>
> > >     </camelContext>
> > >
> > > Testing gives me the following error stack.
> > >
> > > avax.mail.MessagingException: Could not connect to SMTP host:
> > > smtp-relay.sendinblue.com, port: 587;
> > >   nested exception is:
> > >         javax.net.ssl.SSLException: Connection reset
> > >         at
> > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> > >         at
> > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> > >         at javax.mail.Service.connect(Service.java:366)
> > >         at
> >
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> > >         at
> >
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> > >         at
> >
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> > >         at
> >
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> > >         at
> >
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> > >         at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> > >
> > >
> > >
> > >
> > >
> > > *Mike Oliver** Founder**, Open 4 Business Online*
> > > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > > US Toll free: 1-800-985-4766 **NEW*
> > > http://www.o4bo.com
> > > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita
> nito
> > > [image: Facebook]
> > > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> > [image:
> > > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > > <https://angel.co/open-4-business-online/> [image: Blogger]
> > > <http://blog.open4businessonline.com/> [image: eBay]
> > > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image:
> Google
> > > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> > [image:
> > > Skype] MikeOliverAZ
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
> >
>

Re: SMTP Problems

Posted by Mike Oliver <Mi...@open4businessonline.com>.
Still trying.  This is the latest context. This is essentially the same as
the javainuse.com example.

<camelContext id="_deadletterchannelcontext1" xmlns="
http://camel.apache.org/schema/blueprint">
        <route id="_deadletterchannelroute1">
            <from id="_from1" uri="direct-vm:deadletterchannel"/>
            <setHeader headerName="subject" id="_setHeader1">
                <constant>"Error Message"</constant>
            </setHeader>
            <setBody id="_setBody1">
                <constant>"Helo World, Error Body!"</constant>
            </setBody>
            <log id="_log1" message="Dead Letter Channel body = ${body},
headers = ${headers}"/>
            <to id="_to1" uri="smtps:
smtp.gmail.com:587?from=littleboss@gmail.com&amp;subject=This is a test of
smtps camel fuse karaf&amp;to=littleboss@gmail.com
&amp;password=xyxzyz&amp;username=bigboss@gmail.com"/>
        </route>
    </camelContext>

Testing gave the following stack trace.

javax.mail.MessagingException: Could not connect to SMTP host:
smtp.gmail.com, port: 587;
  nested exception is:
	javax.net.ssl.SSLException: Connection reset
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
	at javax.mail.Service.connect(Service.java:366)
	at org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
	at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57)
	at org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:55)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
	at org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141)
	at org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112)
	at org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:150)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
	at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
	at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.lang.Thread.run(Thread.java:748)




*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ



On Fri, May 21, 2021 at 1:16 PM Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> If you google a bit you can find other blogs, and you tube videos on
> how others have made Camel send emails to gmail (requires to configure
> gmail to allow SMTP).
>
> Such as
> https://www.youtube.com/watch?v=oauidgmHHoc
>
>
>
> On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> <Mi...@open4businessonline.com> wrote:
> >
> > I am trying every possibility.
> >
> > I need to send email through gmail from my camel integration.
> >
> > I have tried going to smtp.gmail.com but cannot make it work.  I tried
> the
> > camel-smtp and smtps components and even the camel-google-mail component.
> >
> > Giving up on going direct I chose an smtp relay service SendInBlue.
> >
> > Here is my context.
> >
> > <camelContext id="_deadletterchannelcontext1" xmlns="
> > http://camel.apache.org/schema/blueprint">
> >         <route id="_deadletterchannelroute1">
> >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> >             <setHeader headerName="subject" id="_setHeader1">
> >                 <constant>""Error Message</constant>
> >             </setHeader>
> >             <setBody id="_setBody1">
> >                 <constant>""Helo World, Error Body!</constant>
> >             </setBody>
> >             <log id="_log1" message="Dead Letter Channel body = ${body},
> > headers = ${headers}"/>
> >             <to id="_to1" uri="smtps://
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > &amp;password=blablabla&amp;username=
> mikeoliveraz@open4businessonline.com"/>
> >         </route>
> >     </camelContext>
> >
> > Testing gives me the following error stack.
> >
> > avax.mail.MessagingException: Could not connect to SMTP host:
> > smtp-relay.sendinblue.com, port: 587;
> >   nested exception is:
> >         javax.net.ssl.SSLException: Connection reset
> >         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> >         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> >         at javax.mail.Service.connect(Service.java:366)
> >         at
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> >         at
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> >         at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> >         at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> >         at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> >         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> >
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> > Skype] MikeOliverAZ
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: SMTP Problems

Posted by Michael Oliver <mi...@gmail.com>.
Claus, yes I did, including the javainuse.com site/ youtube.  Also tried
the gmail app password, google-mail component, turning off gmail security
settings and two factor with app password. The referenced youtube was one
of the first things I tried to do.

I am thinking to go java and processor bean and use send mail.

Mike

On Fri, May 21, 2021, 1:16 PM Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> If you google a bit you can find other blogs, and you tube videos on
> how others have made Camel send emails to gmail (requires to configure
> gmail to allow SMTP).
>
> Such as
> https://www.youtube.com/watch?v=oauidgmHHoc
>
>
>
> On Fri, May 21, 2021 at 5:57 AM Mike Oliver
> <Mi...@open4businessonline.com> wrote:
> >
> > I am trying every possibility.
> >
> > I need to send email through gmail from my camel integration.
> >
> > I have tried going to smtp.gmail.com but cannot make it work.  I tried
> the
> > camel-smtp and smtps components and even the camel-google-mail component.
> >
> > Giving up on going direct I chose an smtp relay service SendInBlue.
> >
> > Here is my context.
> >
> > <camelContext id="_deadletterchannelcontext1" xmlns="
> > http://camel.apache.org/schema/blueprint">
> >         <route id="_deadletterchannelroute1">
> >             <from id="_from1" uri="direct-vm:deadletterchannel"/>
> >             <setHeader headerName="subject" id="_setHeader1">
> >                 <constant>""Error Message</constant>
> >             </setHeader>
> >             <setBody id="_setBody1">
> >                 <constant>""Helo World, Error Body!</constant>
> >             </setBody>
> >             <log id="_log1" message="Dead Letter Channel body = ${body},
> > headers = ${headers}"/>
> >             <to id="_to1" uri="smtps://
> >
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> > DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> > &amp;password=blablabla&amp;username=
> mikeoliveraz@open4businessonline.com"/>
> >         </route>
> >     </camelContext>
> >
> > Testing gives me the following error stack.
> >
> > avax.mail.MessagingException: Could not connect to SMTP host:
> > smtp-relay.sendinblue.com, port: 587;
> >   nested exception is:
> >         javax.net.ssl.SSLException: Connection reset
> >         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
> >         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> >         at javax.mail.Service.connect(Service.java:366)
> >         at
> org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
> >         at
> org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
> >         at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> >         at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
> >         at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
> >         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
> >
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> > Skype] MikeOliverAZ
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: SMTP Problems

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

If you google a bit you can find other blogs, and you tube videos on
how others have made Camel send emails to gmail (requires to configure
gmail to allow SMTP).

Such as
https://www.youtube.com/watch?v=oauidgmHHoc



On Fri, May 21, 2021 at 5:57 AM Mike Oliver
<Mi...@open4businessonline.com> wrote:
>
> I am trying every possibility.
>
> I need to send email through gmail from my camel integration.
>
> I have tried going to smtp.gmail.com but cannot make it work.  I tried the
> camel-smtp and smtps components and even the camel-google-mail component.
>
> Giving up on going direct I chose an smtp relay service SendInBlue.
>
> Here is my context.
>
> <camelContext id="_deadletterchannelcontext1" xmlns="
> http://camel.apache.org/schema/blueprint">
>         <route id="_deadletterchannelroute1">
>             <from id="_from1" uri="direct-vm:deadletterchannel"/>
>             <setHeader headerName="subject" id="_setHeader1">
>                 <constant>""Error Message</constant>
>             </setHeader>
>             <setBody id="_setBody1">
>                 <constant>""Helo World, Error Body!</constant>
>             </setBody>
>             <log id="_log1" message="Dead Letter Channel body = ${body},
> headers = ${headers}"/>
>             <to id="_to1" uri="smtps://
> smtp-relay.sendinblue.com:587?from=mikeoliveraz@open4businessonline.com&amp;subject=TEST
> DEAD LETTER CHANNEL&amp;to=mikeoliveraz@gmail.com
> &amp;password=blablabla&amp;username=mikeoliveraz@open4businessonline.com"/>
>         </route>
>     </camelContext>
>
> Testing gives me the following error stack.
>
> avax.mail.MessagingException: Could not connect to SMTP host:
> smtp-relay.sendinblue.com, port: 587;
>   nested exception is:
>         javax.net.ssl.SSLException: Connection reset
>         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
>         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
>         at javax.mail.Service.connect(Service.java:366)
>         at org.apache.camel.component.mail.DefaultJavaMailSender.send(DefaultJavaMailSender.java:113)
>         at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:63)
>         at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>         at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:178)
>         at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:439)
>         at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:173)
>
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
> Skype] MikeOliverAZ



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2