javax.mail.MessagingException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Kah Loun Foong [Atlassian],
  • 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)
    via by Kah Loun Foong [Atlassian],
  • Cannot send e-mail notifications on jenkins
    via Stack Overflow by vjangra
    ,
    • javax.mail.MessagingException: Could not connect to SMTP host: mail.mydomain.com, port: 25, response: 552 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.winit.magicbricks.businessLayer.CommonFunctions$1.run(CommonFunctions.java:1065) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Andreas Häber
    4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    26 more bugmates