Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58916

Test email success, notification fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • mailer-plugin
    • None

      Jenkins ver. 2.176.1

      org.jenkins-ci.plugins:mailer:1.24

      Test email is successfully sent, but an attempt to send notification from a pipeline with the following code: 

      mail(
              bcc: '',
              body: "<p>your body</p>",
              cc: '',
              charset: 'UTF-8',
              from: '',
              mimeType: 'text/html',
              replyTo: '',
              subject: "your subject",
              to: "your-email@mail.com"
      ) 

      results in an authentication failure

      javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessfuljavax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
       at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669) 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.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:142) at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:128) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 

            alecharp Adrien Lecharpentier
            ivansa Ivan Anisimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: