org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465

Stack Overflow | Pavan | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Graylog Sending the email to the following server failed : smtp.gmail.com:587

    Stack Overflow | 2 months ago | Pavan
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
  2. 0

    GitHub comment 1810#183385130

    GitHub | 1 year ago | zvonden
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : srvex01.slb-bank.ch:587 2016-02-12_15:10:15.78040 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421) 2016-02-12_15:10:15.78242 at org.apache.commons.mail.Email.send(Email.java:1448) 2016-02-12_15:10:15.78355 at org.graylog2.alerts.StaticEmailAlertSender.sendEmail(StaticEmailAlertSender.java:123) 2016-02-12_15:10:15.78409 at org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:257) 2016-02-12_15:10:15.78474 at org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:83) 2016-02-12_15:10:15.78540 at org.graylog2.alarmcallbacks.EmailAlarmCallback.call(EmailAlarmCallback.java:69) 2016-02-12_15:10:15.78604 at org.graylog2.rest.resources.streams.alerts.StreamAlertReceiverResource.sendDummyAlert(StreamAlertReceiverResource.java:168) 2016-02-12_15:10:15.79031 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2016-02-12_15:10:15.79096 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2016-02-12_15:10:15.79201 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2016-02-12_15:10:15.79243 at java.lang.reflect.Method.invoke(Method.java:497) 2016-02-12_15:10:15.79296 at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) 2016-02-12_15:10:15.79448 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) 2016-02-12_15:10:15.79524 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) 2016-02-12_15:10:15.79629 at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) 2016-02-12_15:10:15.79702 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) 2016-02-12_15:10:15.79901 at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) 2016-02-12_15:10:15.80228 at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
  3. 0

    EmailAlarmCallback fails to send, DummyAlert works

    GitHub | 2 years ago | traviscosgrave
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : my.emailserver.com:25
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    No way to send smtps alert emails

    GitHub | 10 months ago | pnt-peter
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587
  6. 0

    Unable to send emails through Office365 SMTP server

    GitHub | 2 years ago | kvenkat971
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.mail.AuthenticationFailedException

    534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbv- 534-5.7.14 6vC3XCzJqVo2heot6MTzStDDNqtrq-URUWNIxOSIYAsNlk-WOM6czk02C3Oh-AOy0YW2j6 534-5.7.14 belZo4ljAj85Tioame_Ypjq7OLXDyO5jgYJY2u5jaqWTj-Fix4W0jEzcra7dY70E8IuIzK 534-5.7.14 9-Hi7tkUDxEMFNFmyoUSQWOwb2CbWffW4hW8alSRUy0oROhTAgG2QbxxBRaPV-uDF02Nl0 534-5.7.14 p6TxvspqRYOPzvKdmzOSw3GvH4SyM> Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 g85sm2991175pfe.38 - gsmtp

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate()
  2. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:892)[graylog.jar:?]
    2. com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:814)[graylog.jar:?]
    3. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728)[graylog.jar:?]
    3 frames
  3. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:386)[graylog.jar:?]
    2. javax.mail.Service.connect(Service.java:245)[graylog.jar:?]
    3. javax.mail.Service.connect(Service.java:194)[graylog.jar:?]
    4. javax.mail.Transport.send0(Transport.java:253)[graylog.jar:?]
    5. javax.mail.Transport.send(Transport.java:124)[graylog.jar:?]
    5 frames
  4. Apache Commons Email
    Email.send
    1. org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)[graylog.jar:?]
    2. org.apache.commons.mail.Email.send(Email.java:1448)[graylog.jar:?]
    2 frames
  5. graylog2-server
    StreamAlertResource.sendDummyAlert
    1. org.graylog2.alerts.StaticEmailAlertSender.sendEmail(StaticEmailAlertSender.java:123)[graylog.jar:?]
    2. org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:257)[graylog.jar:?]
    3. org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:83)[graylog.jar:?]
    4. org.graylog2.alarmcallbacks.EmailAlarmCallback.call(EmailAlarmCallback.java:70)[graylog.jar:?]
    5. org.graylog2.rest.resources.streams.alerts.StreamAlertResource.sendDummyAlert(StreamAlertResource.java:316)[graylog.jar:?]
    5 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_121]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_121]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_121]
    4. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_121]
    4 frames
  7. jersey-core-server
    ServerRuntime$2.run
    1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[graylog.jar:?]
    2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[graylog.jar:?]
    3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[graylog.jar:?]
    4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:143)[graylog.jar:?]
    5. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[graylog.jar:?]
    6. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[graylog.jar:?]
    7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[graylog.jar:?]
    8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[graylog.jar:?]
    9. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[graylog.jar:?]
    9 frames
  8. Jersey Core
    RequestScope.runInScope
    1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[graylog.jar:?]
    2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[graylog.jar:?]
    3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)[graylog.jar:?]
    4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)[graylog.jar:?]
    5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)[graylog.jar:?]
    6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[graylog.jar:?]
    6 frames
  9. jersey-core-server
    ApplicationHandler.handle
    1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[graylog.jar:?]
    2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[graylog.jar:?]
    2 frames
  10. jersey-container-grizzly2-http
    GrizzlyHttpContainer.service
    1. org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)[graylog.jar:?]
    1 frame
  11. Grizzly Server
    HttpHandler$1.run
    1. org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)[graylog.jar:?]
    1 frame
  12. Metrics Core
    InstrumentedExecutorService$InstrumentedRunnable.run
    1. com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)[graylog.jar:?]
    1 frame
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_121]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_121]
    3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_121]
    3 frames