javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1

Atlassian JIRA | Kah Loun Foong [Atlassian] | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using port 465 with smtp.gmail.com will have the following error: {noformat} 2013-11-20 17:16:03,173 INFO [qtp2000442639-2841 ] fisheye.mail Mailer-reload - Starting mail system... 2013-11-20 17:16:03,186 INFO [qtp2000442639-2841 ] fisheye.mail Mailer-reload - Mail system started. 2013-11-20 17:16:13,065 INFO [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - Starting mail system... 2013-11-20 17:16:13,066 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.host = smtp.gmail.com 2013-11-20 17:16:13,067 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.starttls.enable = true 2013-11-20 17:16:13,067 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.port = 465 2013-11-20 17:16:13,068 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.from = fkloun@gmail.com 2013-11-20 17:16:13,068 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.auth = true 2013-11-20 17:16:13,069 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - username = fkloun@gmail.com 2013-11-20 17:16:13,071 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - password = ******* 2013-11-20 17:16:13,075 INFO [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - Mail system started. 2013-11-20 17:16:13,076 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-getEffectiveFromAddress - Using from address: 'fkloun@gmail.com' 2013-11-20 17:16:13,076 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2013-11-20 17:16:13,077 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: useEhlo true, useAuth true 2013-11-20 17:16:13,078 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: useEhlo true, useAuth true 2013-11-20 17:16:13,078 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false 2013-11-20 17:26:13,440 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: EOF: [EOF] 2013-11-20 17:26:13,442 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: could not connect to host "smtp.gmail.com", port: 465, response: -1 2013-11-20 17:26:13,443 ERROR [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-sendMessage - problem sending email javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at com.cenqua.fisheye.mail.Mailer.send(Mailer.java:216) {noformat} It is showing 'isSSL false' even though the option 'Use SSL/TLS' is turned ON. h3.Workaround Use port 587 (TLS) or 25 (SSL)

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
  2. 0

    Using port 465 with smtp.gmail.com will have the following error: {noformat} 2013-11-20 17:16:03,173 INFO [qtp2000442639-2841 ] fisheye.mail Mailer-reload - Starting mail system... 2013-11-20 17:16:03,186 INFO [qtp2000442639-2841 ] fisheye.mail Mailer-reload - Mail system started. 2013-11-20 17:16:13,065 INFO [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - Starting mail system... 2013-11-20 17:16:13,066 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.host = smtp.gmail.com 2013-11-20 17:16:13,067 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.starttls.enable = true 2013-11-20 17:16:13,067 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.port = 465 2013-11-20 17:16:13,068 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.from = fkloun@gmail.com 2013-11-20 17:16:13,068 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - mail.smtp.auth = true 2013-11-20 17:16:13,069 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - username = fkloun@gmail.com 2013-11-20 17:16:13,071 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - password = ******* 2013-11-20 17:16:13,075 INFO [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-reload - Mail system started. 2013-11-20 17:16:13,076 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-getEffectiveFromAddress - Using from address: 'fkloun@gmail.com' 2013-11-20 17:16:13,076 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2013-11-20 17:16:13,077 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: useEhlo true, useAuth true 2013-11-20 17:16:13,078 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: useEhlo true, useAuth true 2013-11-20 17:16:13,078 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false 2013-11-20 17:26:13,440 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: EOF: [EOF] 2013-11-20 17:26:13,442 DEBUG [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer$2-log - DEBUG SMTP: could not connect to host "smtp.gmail.com", port: 465, response: -1 2013-11-20 17:26:13,443 ERROR [qtp2000442639-2841 -email-1384938973065] fisheye.mail Mailer-sendMessage - problem sending email javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at com.cenqua.fisheye.mail.Mailer.send(Mailer.java:216) {noformat} It is showing 'isSSL false' even though the option 'Use SSL/TLS' is turned ON. h3.Workaround Use port 587 (TLS) or 25 (SSL)

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
  3. 0

    DSpace Developers - Having problem with e-mail system - using Gmail

    nabble.com | 8 months ago
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DSpace Tech Support - [Dspace-tech] Unable to connect to Gmail SMTP server

    nabble.com | 8 months ago
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
  6. 0

    Getting the JavaMail API to Work

    Stack Overflow | 2 years ago
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
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.MessagingException

    Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1

    at com.sun.mail.smtp.SMTPTransport.openServer()
  2. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
    2. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
    2 frames
  3. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:297)
    2. javax.mail.Service.connect(Service.java:156)
    3. javax.mail.Service.connect(Service.java:105)
    4. javax.mail.Transport.send0(Transport.java:168)
    5. javax.mail.Transport.send(Transport.java:98)
    5 frames
  4. com.cenqua.fisheye
    Mailer.send
    1. com.cenqua.fisheye.mail.Mailer.send(Mailer.java:216)
    1 frame