Status: Closed (View Workflow)
Platform: All, OS: All
Create a new job, choose to use email-ext, and do not enter anything for the
global list. Then for the "Success" emails enter a recepient list (locally only
for success notification) and choose the checkbox "send to recipients". Message
notification is never send.
There is bug in the code, that never checks if the global recepients list is
empty. Then it silently fails with an error message in the console log, but
don't even print the stacktrace of the exception
I'll take a look, but there's an easy workaround: uncheck the "send to recipients" checkbox if the global recipients list is empty.
Sorry for the latest reply. The issue is still a problem.
In order to reproduce it, you need to configure an empty job with extended email configuration and to enter email address in the success recipient list (but leave the global recipient list empty).
Here is the exception that appears in the console output of the job:
Email was triggered for: Success
There are 1 triggered emails.
Sending email for trigger: Success
ERROR: Could not send email as a part of the post-build publishers.
javax.mail.internet.AddressException: Illegal address in string ``''
P.S. I forget to mention that no email has been sent
Created an attachment (id=216)
This is a fixed version of the email publisher. The changes are on line 204 (adding the check for empty list) and line 183(printing the exception, otherwise the user will never understand what the problem is)
This was fixed by againjj in r15195.
There are many unreleased changes in email-ext, including this fix.. I'll look into putting out a new release.