Search code examples
jenkinsjenkins-pluginsemail-ext

Sending email-ext messages to multiple recipients with friendly names


The Problem

I am using Jenkins with the email-ext plugin to send HTML formatted emails to several recipient groups (distribution lists).

When configuring the list of recipients I have used the following formats:

"Development" <[email protected]>, "Software QA" <[email protected]>, "Project Management" <[email protected]>

OR without quotes …

Development <[email protected]>, Software QA <[email protected]>, Project Management <[email protected]>

Using these configurations Jenkins will only email the initially listed recipient.

Update

The behavior appears to be the same using only the email addresses, and no friendly names.

[email protected], [email protected], [email protected]

The Question

Is it possible to use these friendly names when sending mails from email-ext, or have I made an assumption which turns out inaccurate?

I couldn't find documentation indicating either way.

Environment

Jenkins: 2.57
Email-ext: 2.57.2


Solution

  • The Answer

    As it turns out, some of the email addresses in the recipients list were also listed in the Jenkins/Email-Ext "Excluded Recipients" list.

    This list is found under Manage Jenkins >> Configure System >> Extended E-mail Notification >> Excluded Recipients

    There is no output from email-ext or the job's console to indicate this was the case, so it took time to track down.

    I may open an enhancement request with the plugin owner to add some console output related to indicating whether excluded recipients are configured on the job.

    Conclusion

    Just to be clear: email-ext DOES support using friendly display names in the following formats:

    Development <[email protected]> or "Development" <[email protected]>

    Multiples are supported as the usual comma separated list.