• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None
    • Jenkins 2.249.1. Email ext plugin 2.77.
    • 2.78

      To send mail via smtp.office365.com, a correct "from" address is required. If you don't set "from" in the pipleine step, the plugin should use the admin email. The first time the plugin is used, this address is fixed and can't be changed in the UI. 

      I believe the problem is with this code in ExtendedEmailPublisherDescriptor:

       

      public String getAdminAddress() {
              JenkinsLocationConfiguration config = JenkinsLocationConfiguration.get();
              if(config != null) {
                  if(StringUtils.isBlank(mailAccount.getAddress())) {
                      mailAccount.setAddress(config.getAdminAddress());
                  }
              }
              return mailAccount.getAddress();
          }
      
      

      Once an address has been recorded it can never change, even if you change the admin address. In my case it was the "nobody" address.

       

      The address is recorded in Jenkins home directory, file .jenkins/hudson.plugins.emailext.ExtendedEmailPublisher.xml. A viable workaround is to edit the file and correct the address element. Example:

      <address>address not configured yet &lt;nobody@nowhere&gt;</address>
      ->
      <address>correct@adress</address>

      Then restart Jenkins.

          [JENKINS-63846] From address can't be changed

          Gunnar Grim created issue -
          Gunnar Grim made changes -
          Description Original: To send mail via smtp.office365.com, a correct "from" address is required. If you don't set "from" in the pipleine step, the plugin should use the admin email. The first time the plugin is used, this address is fixed and can't be changed in the UI. 

          I believe the problem is with this code in ExtendedEmailPublisherDescriptor:

           
          {code:java}

          public String getAdminAddress() {
                  JenkinsLocationConfiguration config = JenkinsLocationConfiguration.get();
                  if(config != null) {
                      if(StringUtils.isBlank(mailAccount.getAddress())) {
                          mailAccount.setAddress(config.getAdminAddress());
                      }
                  }
                  return mailAccount.getAddress();
              }

          {code}
          Once an address has been recorded it can never change, even if you change the admin address. In my case it was the "nobody" address.

           

          The address is recoded in hudson.plugins.emailext.ExtendedEmailPublisher.xml. A viable workaround is to edit the file:
          {code:java}
          <address>address not configured yet &lt;nobody@nowhere&gt;</address>
          {code}
          Then restart Jenkins.
          New: To send mail via smtp.office365.com, a correct "from" address is required. If you don't set "from" in the pipleine step, the plugin should use the admin email. The first time the plugin is used, this address is fixed and can't be changed in the UI. 

          I believe the problem is with this code in ExtendedEmailPublisherDescriptor:

           
          {code:java}
          public String getAdminAddress() {
                  JenkinsLocationConfiguration config = JenkinsLocationConfiguration.get();
                  if(config != null) {
                      if(StringUtils.isBlank(mailAccount.getAddress())) {
                          mailAccount.setAddress(config.getAdminAddress());
                      }
                  }
                  return mailAccount.getAddress();
              }

          {code}
          Once an address has been recorded it can never change, even if you change the admin address. In my case it was the "nobody" address.

           

          The address is recorded in Jenkins home directory, file .jenkins/hudson.plugins.emailext.ExtendedEmailPublisher.xml. A viable workaround is to edit the file:
          {code:java}
          <address>address not configured yet &lt;nobody@nowhere&gt;</address>
          {code}
          Then restart Jenkins.
          Gunnar Grim made changes -
          Description Original: To send mail via smtp.office365.com, a correct "from" address is required. If you don't set "from" in the pipleine step, the plugin should use the admin email. The first time the plugin is used, this address is fixed and can't be changed in the UI. 

          I believe the problem is with this code in ExtendedEmailPublisherDescriptor:

           
          {code:java}
          public String getAdminAddress() {
                  JenkinsLocationConfiguration config = JenkinsLocationConfiguration.get();
                  if(config != null) {
                      if(StringUtils.isBlank(mailAccount.getAddress())) {
                          mailAccount.setAddress(config.getAdminAddress());
                      }
                  }
                  return mailAccount.getAddress();
              }

          {code}
          Once an address has been recorded it can never change, even if you change the admin address. In my case it was the "nobody" address.

           

          The address is recorded in Jenkins home directory, file .jenkins/hudson.plugins.emailext.ExtendedEmailPublisher.xml. A viable workaround is to edit the file:
          {code:java}
          <address>address not configured yet &lt;nobody@nowhere&gt;</address>
          {code}
          Then restart Jenkins.
          New: To send mail via smtp.office365.com, a correct "from" address is required. If you don't set "from" in the pipleine step, the plugin should use the admin email. The first time the plugin is used, this address is fixed and can't be changed in the UI. 

          I believe the problem is with this code in ExtendedEmailPublisherDescriptor:

           
          {code:java}
          public String getAdminAddress() {
                  JenkinsLocationConfiguration config = JenkinsLocationConfiguration.get();
                  if(config != null) {
                      if(StringUtils.isBlank(mailAccount.getAddress())) {
                          mailAccount.setAddress(config.getAdminAddress());
                      }
                  }
                  return mailAccount.getAddress();
              }

          {code}
          Once an address has been recorded it can never change, even if you change the admin address. In my case it was the "nobody" address.

           

          The address is recorded in Jenkins home directory, file .jenkins/hudson.plugins.emailext.ExtendedEmailPublisher.xml. A viable workaround is to edit the file and correct the address element. Example:
          {code:java}
          <address>address not configured yet &lt;nobody@nowhere&gt;</address>
          ->
          <address>correct@adress</address>{code}
          Then restart Jenkins.
          Pavan Indukuri made changes -
          Link New: This issue is related to JENKINS-63890 [ JENKINS-63890 ]
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ]
          Basil Crow made changes -
          Assignee New: Basil Crow [ basil ]
          Basil Crow made changes -
          Summary Original: From-address can't be changed New: From address can't be changed
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/email-ext-plugin#249 (Web Link)" [ 26129 ]
          Basil Crow made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            basil Basil Crow
            gugrim Gunnar Grim
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: