org.apache.commons.mail.EmailException

tip

Check for proxy misconfigurations and AWS issues.


rafael

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

  • Play 2.5 with mailer plugin
    via Stack Overflow by Pariksheet Barapatre
    ,
  • GitHub comment 20#188187186
    via GitHub by ringtail
    ,
  • GitHub comment 435#192330204
    via GitHub by Mwea
    ,
  • GitHub comment 395#244324344
    via GitHub by mibby
    ,
  • GitHub comment 403#244367097
    via GitHub by samskiter
    ,
  • Connection refused with proxy obtaining access token
    via by Unknown author,
  • GitHub comment 1432#263910309
    via GitHub by mattnworb
    ,
    • org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.mail.yahoo.com:465 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421) at org.apache.commons.mail.Email.send(Email.java:1448) at play.api.libs.mailer.SMTPMailer$$anon$2.send(MailerPlugin.scala:100) at play.api.libs.mailer.CommonsMailer.send(MailerPlugin.scala:130) at play.api.libs.mailer.SMTPMailer.send(MailerPlugin.scala:110) at play.api.libs.mailer.SMTPDynamicMailer.send(MailerPlugin.scala:117) at utils.Mailer.sendEmail(Mailer.scala:30) at utils.Mailer$$anonfun$sendEmailAsync$1.apply$mcV$sp(Mailer.scala:22) at utils.Mailer$$anonfun$sendEmailAsync$1.apply(Mailer.scala:22) at utils.Mailer$$anonfun$sendEmailAsync$1.apply(Mailer.scala:22) Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at javax.mail.Transport.send0(Transport.java:194) at javax.mail.Transport.send(Transport.java:124) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411) at org.apache.commons.mail.Email.send(Email.java:1448) at play.api.libs.mailer.SMTPMailer$$anon$2.send(MailerPlugin.scala:100) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:211)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    mortalman7
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    108 more bugmates