org.apache.commons.mail.EmailException

Sending the email to the following serve r failed : smtp.gmail.com:587

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web231

  • Stack trace

    • org.apache.commons.mail.EmailException: Sending the email to the following serve r failed : smtp.gmail.com:587 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)[commons-email-1.3.3.jar:1.3.3] at org.apache.commons.mail.Email.send(Email.java:1437)[commons-email-1.3.3.jar:1.3.3] at play.api.libs.mailer.CommonsMailer$$anon$2.send(MailerPlugin.scala:102)[play-mailer_2.10-3.0.1.jar:3.0.1] at play.api.libs.mailer.SMTPMailer.send(MailerPlugin.scala:127)[play-mailer_2.10-3.0.1.jar:3.0.1] at play.api.libs.mailer.CommonsMailer.send(MailerPlugin.scala:109)[play-mailer_2.10-3.0.1.jar:3.0.1] at play.api.libs.mailer.MailerClient$class.send(MailerPlugin.scala:44)[play-mailer_2.10-3.0.1.jar:3.0.1] at play.api.libs.mailer.CommonsMailer.send(MailerPlugin.scala:83)[play-mailer_2.10-3.0.1.jar:3.0.1] at models.utils.Mail$EnvelopJob.run(Mail.java:104)[classes/:na] at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)[akka-actor_2.10-2.3.13.jar:na] at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)[akka-actor_2.10-2.3.13.jar:na] Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.g mail.com, port: 587 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)[mail-1.4.5.jar:1.4.5] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)[mail-1.4.5.jar:1.4.5] at javax.mail.Service.connect(Service.java:317)[mail-1.4.5.jar:1.4.5] at javax.mail.Service.connect(Service.java:176)[mail-1.4.5.jar:1.4.5] at javax.mail.Service.connect(Service.java:125)[mail-1.4.5.jar:1.4.5] at javax.mail.Transport.send0(Transport.java:194)[mail-1.4.5.jar:1.4.5] at javax.mail.Transport.send(Transport.java:124)[mail-1.4.5.jar:1.4.5] at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)[commons-email-1.3.3.jar:1.3.3] at org.apache.commons.mail.Email.send(Email.java:1437)[commons-email-1.3.3.jar:1.3.3] at play.api.libs.mailer.CommonsMailer$$anon$2.send(MailerPlugin.scala:102)[play-mailer_2.10-3.0.1.jar:3.0.1] Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext conne ction? at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)[na:1.8.0_101] at sun.security.ssl.InputRecord.read(InputRecord.java:527)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[na:1.8.0_101] at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)[mail-1.4.5.jar:1.4.5] at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:352)[mail-1.4.5.jar:1.4.5] at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)[mail-1.4.5.jar:1.4.5] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)[mail-1.4.5.jar:1.4.5]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    AxeloAxelo
    5 times, last one
    Unknown visitor
    Unknown visitorOnce,
    AndrewProgAndrewProg
    4 times, last one
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    86 more bugmates