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

Email Notification not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      version: 2.263.1
      Ubuntu 18
      Java 8
    • Similar Issues:

      Description

      I have configured Jenkins email notification. The test email is working fine from Manage Jenkins. However, it is failing in the job. Getting below error after enabling debug mode.

       
      Sending mail from default account using custom from address jenkinstestacc@gmail.com
      messageContentType = text/plain; charset=UTF-8
      Adding recipients from project recipient list
      Analyzing: NoReplyJenkins@gmail.com
      Looking for: NoReplyJenkins@gmail.com
      starting at: 0
      firstFoundIdx: 0
      firstFoundIdx-substring: NoReplyJenkins@gmail.com
      => found type: 0
      Analyzing: NoReplyJenkins@gmail.com
      Looking for: NoReplyJenkins@gmail.com
      starting at: 0
      firstFoundIdx: 0
      firstFoundIdx-substring: NoReplyJenkins@gmail.com
      => found type: 0
      Analyzing: NoReplyJenkins@gmail.com
      Looking for: NoReplyJenkins@gmail.com
      starting at: 0
      firstFoundIdx: 0
      firstFoundIdx-substring: NoReplyJenkins@gmail.com
      => found type: 0
      Adding recipients from trigger recipient list
      Successfully created MimeMessage
      Sending email to: NoReplyJenkins@gmail.com
      DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
      DEBUG SMTP: need username and password for authentication
      DEBUG SMTP: protocolConnect returning false, host=smpt.gmail.com, user=jenkins, password=<null>
      DEBUG SMTP: useEhlo true, useAuth true
      DEBUG SMTP: trying to connect to host "smpt.gmail.com", port 465, isSSL false
      MailConnectException message: Couldn't connect to host, port: smpt.gmail.com, 465; timeout 60000
      Next UnknownHostException message: smpt.gmail.com[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: SUCCESS
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            giridhar_08 Giridhar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: