ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
96 stars 76 forks source link

Bug: Error Message for send_email incorrect #600

Open culbert opened 4 months ago

culbert commented 4 months ago

What happened?

There is a bug in the code that reports exceptions when sending emails. The "to" and "from" are swapped in the message template.

This bug is in core/utils/mail.py. At line 59, in the exception handler at the bottom of the send_email utility function. You'll note that in the string substitution that renders the error message that sender and receiver are substituted in the wrong order (i.e. receiver list is used to fill in "from" placeholder and sender is used to fill in "to" placeholder.

Version

1.1.5

Component

Other

What browsers are you seeing the problem on?

None

Relevant log output

No response

Tasks/ user tests when bug is fixed