Hi Jean-Baptiste Great, thanks ;) Also for gmail I tried to enable "less secure mode" but got the same error as below, namely that the password might not be set.
Best Souciance On Mon, Nov 7, 2016 at 3:07 PM, jbonofre [via Karaf] < [email protected]> wrote: > Hi Souciance, > > let me check in the Decanter 1.2.0 (I think I did a fix there). > > Regards > JB > > On 11/07/2016 02:28 PM, souciance wrote: > > > Hello, > > > > I have Karaf 4.0.2 and decanter 1.1.0 installed with sla-checker and > e-mail > > alert. > > > > I configured the e-mail alert with the following properties: > > > > # > > # Decanter SLA e-mail alerter configuration > > # > > > > # From e-mail address > > from=[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4048600&i=0> > > > > # To e-mail address > > to=[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4048600&i=1> > > > > # Hostname of the SMTP server > > host=smtp.office365.com > > > > # Port of the SMTP server > > port=587 > > > > # enable SMTP auth > > auth=true > > > > # enable starttls and ssl > > starttls=true > > ssl=false > > > > # Optionally, username for the SMTP server > > username=<username> > > > > # Optionally, password for the SMTP server > > password=<password> > > > > However I keep getting the error below. I tried to connect to gmail and > got > > the same error there. Is there any other configuration we need to do to > get > > the e-mail alert to work? I know the username and password is correct as > I > > have used them to login to the respective accounts. > > > > 016-11-07 14:23:54,067 | ERROR | Thread-31 | EmailAlerter > > | Can't send the alert e-mail > > javax.mail.AuthenticationFailedException: failed to connect, no > password > > specified? > > at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7] > > at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7] > > at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7] > > at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7] > > at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7] > > at > > org.apache.karaf.decanter.sla.email.EmailAlerter. > handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0] > > > at > > org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent( > EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2] > > > at > > org.apache.felix.eventadmin.impl.tasks.HandlerTask.run( > HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2] > > at > > java.util.concurrent.Executors$RunnableAdapter. > call(Executors.java:511)[:1.8.0_71] > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71] > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1142)[:1.8.0_71] > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617)[:1.8.0_71] > > at java.lang.Thread.run(Thread.java:745)[:1.8.0_71] > > 2016-11-07 14:23:54,052 | ERROR | Thread-26 | EmailAlerter > > | Can't send the alert e-mail > > javax.mail.AuthenticationFailedException: failed to connect, no > password > > specified? > > at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7] > > at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7] > > at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7] > > at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7] > > at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7] > > at > > org.apache.karaf.decanter.sla.email.EmailAlerter. > handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0] > > > at > > org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent( > EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2] > > > at > > org.apache.felix.eventadmin.impl.tasks.HandlerTask.run( > HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2] > > at > > java.util.concurrent.Executors$RunnableAdapter. > call(Executors.java:511)[:1.8.0_71] > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71] > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1142)[:1.8.0_71] > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617)[:1.8.0_71] > > > > > > > > > > > > -- > > View this message in context: http://karaf.922171.n3.nabble. > com/Decanater-alert-e-mail-configuration-tp4048599.html > > Sent from the Karaf - User mailing list archive at Nabble.com. > > > > -- > Jean-Baptiste Onofré > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4048600&i=2> > http://blog.nanthrax.net > Talend - http://www.talend.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://karaf.922171.n3.nabble.com/Decanter-alert-e-mail-configuration- > tp4048599p4048600.html > To unsubscribe from Decanter alert e-mail configuration, click here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4048599&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDA0ODU5OXwxNTMyOTExNjU2> > . > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://karaf.922171.n3.nabble.com/Decanter-alert-e-mail-configuration-tp4048599p4048601.html Sent from the Karaf - User mailing list archive at Nabble.com.
