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

Post-Job email Action Fails when email domain contains hyphen

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • email-ext-plugin

      The email seems to fail when the domain name of a user has a hyphen

      for instance, I have set to email a default list of users along with the build requestor. I never see any errors and it always works with the exception of one use who's email address has a hyphen, i.e.

      user@company-name.com

      when an email with a hyphen is the build requestor, they are entirely ignored. No error message is generated, and no email is sent to them. 

          [JENKINS-72670] Post-Job email Action Fails when email domain contains hyphen

          John created issue -
          John made changes -
          Summary Original: POst-Job email Action Fails when email domain contains hyphen New: Post-Job email Action Fails when email domain contains hyphen
          John made changes -
          Description Original: The email seems to fail when the domain name of a user has a hyphen

           

          for instance, I have set to email a default list of users along with the build requestor. I never see any errors and it always works with the exception of one use who's email address has a hyphen, i.e.

          user@company-name.com
          New: The email seems to fail when the domain name of a user has a hyphen

          for instance, I have set to email a default list of users along with the build requestor. I never see any errors and it always works with the exception of one use who's email address has a hyphen, i.e.

          [user@company-name.com|mailto:user@company-name.com]

          when an email with a hyphen is the build requestor, they are entirely ignored. No error message is generated, and no email is sent to them. 

          Alex Earl added a comment -

          Alex Earl added a comment - Looks like JavaMail won't allow a hyphen in the domain name: https://github.com/jakartaee/mail-api/blob/bf2bfc18c0d2b9b3f57417203c2a462a3a94a7de/api/src/main/java/jakarta/mail/internet/InternetAddress.java#L1418
          Alex Earl made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            john_ehlen John
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: