Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9930

Issue in sending email using PushEmailNotifier

    XMLWordPrintable

Details

    Description

      I am using sourcecode of notifier from Bitbucket. I am able to create test environment for stash on my machine but I am not able to configure MailServer settings. Not able to test email from stash. It gives me error Network is unreachable.

      Caused by: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mailhost.company.com, port: 25;
      [INFO] [talledLocalContainer] nested exception is:
      [INFO] [talledLocalContainer] java.net.SocketException: Network is unreachable: connect. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: mailhost.company.com, port: 25;
      [INFO] [talledLocalContainer] nested exception is:
      [INFO] [talledLocalContainer] java.net.SocketException: Network is unreachable: connect
      [INFO] [talledLocalContainer] at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:400) ~[spring-context-support-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      [INFO] [talledLocalContainer] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340) ~[spring-context-support-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      [INFO] [talledLocalContainer] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:355) ~[spring-context-support-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      [INFO] [talledLocalContainer] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      [INFO] [talledLocalContainer] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:205) ~[stash-service-impl-2.5.0.jar:na]
      [INFO] [talledLocalContainer] ... 220 common frames omitted

      Not sure what's going wrong here?

      Attachments

        Activity

          People

            Unassigned Unassigned
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: